Skip to main content

Class: UnknownEnumValueError

Defined in: projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:6

Extends

Constructors

new UnknownEnumValueError()

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

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

Parameters

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

Returns

UnknownEnumValueError

Overrides

BaseError.constructor

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

[customInspectSymbol]()

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

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError.[customInspectSymbol]


[customInspectSymbolStackLess]()

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

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseError.[customInspectSymbolStackLess]


toJSON()

toJSON(): UnknownEnumValueErrorJsonified

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

Returns

UnknownEnumValueErrorJsonified

Overrides

BaseError.toJSON