Skip to content

Latest commit

 

History

History
200 lines (102 loc) · 3.78 KB

InvalidSecretError.md

File metadata and controls

200 lines (102 loc) · 3.78 KB

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / src/error / InvalidSecretError

Class: InvalidSecretError

Represents encountering invalid or illegal credentials, key material, some token, or other secret data provided by the user.

Extends

Constructors

new InvalidSecretError()

new InvalidSecretError(secretType?): InvalidSecretError

Represents encountering invalid or illegal credentials, key material, some token, or other secret data provided by the user.

Parameters

secretType?: string

Returns

InvalidSecretError

Overrides

ClientValidationError.constructor

Source

node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:12

new InvalidSecretError()

new InvalidSecretError(secretType, message): InvalidSecretError

This constructor syntax is used by subclasses when calling this constructor via super.

Parameters

secretType: string

message: string

Returns

InvalidSecretError

Overrides

ClientValidationError.constructor

Source

node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:17

Properties

cause?

optional cause: unknown

Inherited from

ClientValidationError.cause

Source

node_modules/typescript/lib/lib.es2022.error.d.ts:24


message

message: string

Inherited from

ClientValidationError.message

Source

node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

ClientValidationError.name

Source

node_modules/typescript/lib/lib.es5.d.ts:1076


secretType

readonly secretType: string

Source

node_modules/named-app-errors/dist/modules/error/validation/client-validation/invalid-secret.d.ts:7


stack?

optional stack: string

Inherited from

ClientValidationError.stack

Source

node_modules/typescript/lib/lib.es5.d.ts:1078


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

Inherited from

ClientValidationError.prepareStackTrace

Source

node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

ClientValidationError.stackTraceLimit

Source

node_modules/@types/node/globals.d.ts:30

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

ClientValidationError.captureStackTrace

Source

node_modules/@types/node/globals.d.ts:21