Class: abstract
BaseConstraintError<T>
Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:24
Extends
Extended by
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Constructors
new BaseConstraintError()
new BaseConstraintError<
T
>(constraint
:ConstraintErrorNames
,message
:string
,given
:T
):BaseConstraintError
<T
>
Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:28
Parameters
Parameter | Type |
---|---|
constraint | ConstraintErrorNames |
message | string |
given | T |
Returns
Overrides
Properties
constraint
readonly
constraint:ConstraintErrorNames
Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:25
given
readonly
given:T
Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:26
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
BaseError
.[customInspectSymbol]
[customInspectSymbolStackLess]()
abstract
protected
[customInspectSymbolStackLess](depth
:number
,options
:InspectOptionsStylized
):string
Defined in: projects/shapeshift/src/lib/errors/BaseError.ts:19
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError
.[customInspectSymbolStackLess]
toJSON()
toJSON():
BaseConstraintErrorJsonified
<T
>
Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:34
Returns
BaseConstraintErrorJsonified
<T
>