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