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