Class: abstract BaseConstraintError<T>
Extends
Extended by
Type parameters
| Type parameter | Value |
|---|---|
T | unknown |
Constructors
new BaseConstraintError()
new BaseConstraintError<
T>(constraint:ConstraintErrorNames,message:string,given:T):BaseConstraintError<T>
Parameters
| Parameter | Type |
|---|---|
constraint | ConstraintErrorNames |
message | string |
given | T |
Returns
Overrides
Source
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:28
Properties
constraint
readonlyconstraint:ConstraintErrorNames
Source
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:25
given
readonlygiven:T
Source
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:26
Methods
[customInspectSymbolStackLess]()
protectedabstract[customInspectSymbolStackLess](depth:number,options:InspectOptionsStylized):string
Parameters
| Parameter | Type |
|---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError . [customInspectSymbolStackLess]
Source
projects/shapeshift/src/lib/errors/BaseError.ts:19
[customInspectSymbol]()
protected[customInspectSymbol](depth:number,options:InspectOptionsStylized):string
Parameters
| Parameter | Type |
|---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError . [customInspectSymbol]
Source
projects/shapeshift/src/lib/errors/BaseError.ts:15
toJSON()
toJSON():
BaseConstraintErrorJsonified<T>
Returns
BaseConstraintErrorJsonified<T>
Overrides
Source
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:34