Class: MultiplePossibilitiesConstraintError<T>
Extends
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Constructors
new MultiplePossibilitiesConstraintError()
new MultiplePossibilitiesConstraintError<
T
>(constraint
:ConstraintErrorNames
,message
:string
,given
:T
,expected
: readonlystring
[]):MultiplePossibilitiesConstraintError
<T
>
Parameters
Parameter | Type |
---|---|
constraint | ConstraintErrorNames |
message | string |
given | T |
expected | readonly string [] |
Returns
MultiplePossibilitiesConstraintError
<T
>
Overrides
BaseConstraintError
.constructor
Defined in
projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:9
Properties
constraint
readonly
constraint:ConstraintErrorNames
Inherited from
BaseConstraintError
.constraint
Defined in
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:25
expected
readonly
expected: readonlystring
[]
Defined in
projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:7
given
readonly
given:T
Inherited from
Defined in
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:26
Methods
[customInspectSymbol]()
protected
[customInspectSymbol](depth
:number
,options
:InspectOptionsStylized
):string
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseConstraintError
.[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
BaseConstraintError
.[customInspectSymbolStackLess]
Defined in
projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:24
toJSON()
toJSON():
MultiplePossibilitiesConstraintErrorJsonified
<T
>
Returns
MultiplePossibilitiesConstraintErrorJsonified
<T
>
Overrides
Defined in
projects/shapeshift/src/lib/errors/MultiplePossibilitiesConstraintError.ts:14