Skip to main content

Class: MultiplePossibilitiesConstraintError<T>

Type parameters

NameType
Tunknown

Hierarchy

Constructors

constructor

new MultiplePossibilitiesConstraintError<T>(constraint, message, given, expected)

Type parameters

NameType
Tunknown

Parameters

NameType
constraintConstraintErrorNames
messagestring
givenT
expectedreadonly string[]

Overrides

BaseConstraintError.constructor

Defined in

projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:8

Properties

cause

Optional cause: Error

Inherited from

BaseConstraintError.cause

Defined in

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


constraint

Readonly constraint: ConstraintErrorNames

Inherited from

BaseConstraintError.constraint

Defined in

projects/shapeshift/src/lib/errors/BaseConstraintError.ts:22


expected

Readonly expected: readonly string[]

Defined in

projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:6


given

Readonly given: T

Inherited from

BaseConstraintError.given

Defined in

projects/shapeshift/src/lib/errors/BaseConstraintError.ts:23


message

message: string

Inherited from

BaseConstraintError.message

Defined in

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


name

name: string

Inherited from

BaseConstraintError.name

Defined in

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


stack

Optional stack: string

Inherited from

BaseConstraintError.stack

Defined in

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


prepareStackTrace

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

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

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

Inherited from

BaseConstraintError.prepareStackTrace

Defined in

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


stackTraceLimit

Static stackTraceLimit: number

Inherited from

BaseConstraintError.stackTraceLimit

Defined in

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

Methods

[customInspectSymbolStackLess]

Protected [customInspectSymbolStackLess](depth, options): string

Parameters

NameType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseConstraintError.[customInspectSymbolStackLess]

Defined in

projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:22


[customInspectSymbol]

Protected [customInspectSymbol](depth, options): string

Parameters

NameType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseConstraintError.[customInspectSymbol]

Defined in

projects/shapeshift/src/lib/errors/BaseError.ts:7


toJSON

toJSON(): Object

Returns

Object

NameType
constraintConstraintErrorNames
expectedreadonly string[]
givenT
namestring

Defined in

projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:13


captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

BaseConstraintError.captureStackTrace

Defined in

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