Skip to content

Errors: DuplicateParamsError ​

An error thrown when duplicate parameters are detected in a route. Param names must be unique. This includes params defined in a path parent and params defined in the query.

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new DuplicateParamsError(paramName): DuplicateParamsError;

Constructs a new DuplicateParamsError instance with a message indicating the problematic parameter.

Parameters ​

ParameterTypeDescription
paramNamestringThe name of the parameter that was duplicated.

Returns ​

DuplicateParamsError

Overrides ​

ts
Error.constructor

Methods ​

isError() ​

ts
static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

ts
Error.isError

Properties ​

PropertyTypeInherited from
cause?unknownError.cause
messagestringError.message
namestringError.name
stack?stringError.stack