Class: UnknownEnumValueError
Extends
Constructors
new UnknownEnumValueError()
new UnknownEnumValueError(
value:string|number,keys:string[],enumMappings:Map<string|number,string|number>,validatorOptions?:ValidatorOptions):UnknownEnumValueError
Parameters
| Parameter | Type |
|---|---|
value | string | number |
keys | string[] |
enumMappings | Map<string | number, string | number> |
validatorOptions? | ValidatorOptions |
Returns
Overrides
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:11
Properties
enumKeys
readonlyenumKeys:string[]
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:8
enumMappings
readonlyenumMappings:Map<string|number,string|number>
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:9
value
readonlyvalue:string|number
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:7
Methods
[customInspectSymbol]()
protected[customInspectSymbol](depth:number,options:InspectOptionsStylized):string
Parameters
| Parameter | Type |
|---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError.[customInspectSymbol]
Defined in
projects/shapeshift/src/lib/errors/BaseError.ts:15
[customInspectSymbolStackLess]()
protected[customInspectSymbolStackLess](depth:number,options:InspectOptionsStylized):string
Parameters
| Parameter | Type |
|---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Overrides
BaseError.[customInspectSymbolStackLess]
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:34
toJSON()
toJSON():
UnknownEnumValueErrorJsonified
Returns
UnknownEnumValueErrorJsonified
Overrides
Defined in
projects/shapeshift/src/lib/errors/UnknownEnumValueError.ts:24