Skip to main content

Class: MultiplePossibilitiesConstraintError<T>

Extends

Type parameters

Type parameterValue
Tunknown

Constructors

new MultiplePossibilitiesConstraintError()

new MultiplePossibilitiesConstraintError<T>(constraint: ConstraintErrorNames, message: string, given: T, expected: readonly string[]): MultiplePossibilitiesConstraintError<T>

Parameters

ParameterType
constraintConstraintErrorNames
messagestring
givenT
expectedreadonly string[]

Returns

MultiplePossibilitiesConstraintError<T>

Overrides

BaseConstraintError . constructor

Source

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

Properties

constraint

readonly constraint: ConstraintErrorNames

Inherited from

BaseConstraintError . constraint

Source

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


expected

readonly expected: readonly string[]

Source

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


given

readonly given: T

Inherited from

BaseConstraintError . given

Source

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

Methods

[customInspectSymbolStackLess]()

protected [customInspectSymbolStackLess](depth: number, options: InspectOptionsStylized): string

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseConstraintError . [customInspectSymbolStackLess]

Source

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


[customInspectSymbol]()

protected [customInspectSymbol](depth: number, options: InspectOptionsStylized): string

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseConstraintError . [customInspectSymbol]

Source

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


toJSON()

toJSON(): MultiplePossibilitiesConstraintErrorJsonified<T>

Returns

MultiplePossibilitiesConstraintErrorJsonified<T>

Overrides

BaseConstraintError . toJSON

Source

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