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

new DuplicateParamsError()

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

Error.constructor

Methods

captureStackTrace()

ts
static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

ParameterType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Properties

PropertyModifierTypeDescriptionInherited from
cause?publicunknown-Error.cause
messagepublicstring-Error.message
namepublicstring-Error.name
stack?publicstring-Error.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesError.prepareStackTrace
stackTraceLimitstaticnumber-Error.stackTraceLimit