Class: ExpectedConstraintError<T>
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
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
Defined in
projects/shapeshift/src/lib/errors/ExpectedConstraintError.ts:9
Properties
constraint
readonlyconstraint:ConstraintErrorNames
Inherited from
BaseConstraintError.constraint
Defined in
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:25
expected
readonlyexpected:string
Defined in
projects/shapeshift/src/lib/errors/ExpectedConstraintError.ts:7
given
readonlygiven: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/ExpectedConstraintError.ts:24
toJSON()
toJSON():
ExpectedConstraintErrorJsonified<T>
Returns
ExpectedConstraintErrorJsonified<T>
Overrides
Defined in
projects/shapeshift/src/lib/errors/ExpectedConstraintError.ts:14