Skip to main content

Class: UnknownEnumValueError

Extends

Constructors

new UnknownEnumValueError()

new UnknownEnumValueError(value: string | number, keys: string[], enumMappings: Map ↗️<string | number, string | number>): UnknownEnumValueError

Parameters

ParameterType
valuestring | number
keysstring[]
enumMappingsMap ↗️<string | number, string | number>

Returns

UnknownEnumValueError

Overrides

BaseError . constructor

Source

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

Properties

enumKeys

readonly enumKeys: string[]

Source

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


enumMappings

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

Source

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


value

readonly value: string | number

Source

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

Methods

[customInspectSymbolStackLess]()

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseError . [customInspectSymbolStackLess]

Source

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


[customInspectSymbol]()

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError . [customInspectSymbol]

Source

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


toJSON()

toJSON(): object

Returns

object

enumKeys

enumKeys: string[]

enumMappings

enumMappings: [string | number, string | number][]

name

name: string

value

value: string | number

Source

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