elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / src/error / InvalidSecretError
Represents encountering invalid or illegal credentials, key material, some token, or other secret data provided by the user.
new InvalidSecretError(
secretType
?):InvalidSecretError
Represents encountering invalid or illegal credentials, key material, some token, or other secret data provided by the user.
• secretType?: string
ClientValidationError
.constructor
node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:12
new InvalidSecretError(
secretType
,message
):InvalidSecretError
This constructor syntax is used by subclasses when calling this constructor
via super
.
• secretType: string
• message: string
ClientValidationError.constructor
node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:17
optional
cause:unknown
node_modules/typescript/lib/lib.es2022.error.d.ts:24
message:
string
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
string
node_modules/typescript/lib/lib.es5.d.ts:1076
readonly
secretType:string
node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:7
optional
stack:string
node_modules/typescript/lib/lib.es5.d.ts:1078
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
• err: Error
• stackTraces: CallSite
[]
any
ClientValidationError
.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
static
stackTraceLimit:number
ClientValidationError
.stackTraceLimit
node_modules/@types/node/globals.d.ts:30
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
• targetObject: object
• constructorOpt?: Function
void
ClientValidationError
.captureStackTrace
node_modules/@types/node/globals.d.ts:21