Class: UnknownEnumValueError
Extends
Constructors
new UnknownEnumValueError()
new UnknownEnumValueError(
value
:string
|number
,keys
:string
[],enumMappings
:Map ↗️
<string
|number
,string
|number
>):UnknownEnumValueError
Parameters
Parameter | Type |
---|---|
value | string | number |
keys | string [] |
enumMappings | Map ↗️ <string | number , string | number > |
Returns
Overrides
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
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Overrides
BaseError
. [customInspectSymbolStackLess]
Source
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:26
[customInspectSymbol]
()
protected
[customInspectSymbol](depth
:number
,options
:InspectOptionsStylized
):string
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
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