Skip to main content

Class: UnknownEnumValueError

Extends

Constructors

new UnknownEnumValueError()

new UnknownEnumValueError(value: string | number, keys: string[], enumMappings: Map<string | number, string | number>, validatorOptions?: ValidatorOptions): UnknownEnumValueError

Parameters

ParameterType
valuestring | number
keysstring[]
enumMappingsMap<string | number, string | number>
validatorOptions?ValidatorOptions

Returns

UnknownEnumValueError

Overrides

BaseError.constructor

Defined in

projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:11

Properties

enumKeys

readonly enumKeys: string[]

Defined in

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


enumMappings

readonly enumMappings: Map<string | number, string | number>

Defined in

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


value

readonly value: string | number

Defined in

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

Methods

[customInspectSymbolStackLess]()

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseError.[customInspectSymbolStackLess]

Defined in

projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:34


[customInspectSymbol]()

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError.[customInspectSymbol]

Defined in

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


toJSON()

toJSON(): UnknownEnumValueErrorJsonified

Returns

UnknownEnumValueErrorJsonified

Overrides

BaseError.toJSON

Defined in

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