Class: abstract
BaseConstraintError<T>
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
>
Parameters
Parameter | Type |
---|---|
constraint | ConstraintErrorNames |
message | string |
given | T |
Returns
Overrides
Defined in
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:28
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
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError
.[customInspectSymbol]
Defined in
projects/shapeshift/src/lib/errors/BaseError.ts:15
[customInspectSymbolStackLess]()
abstract
protected
[customInspectSymbolStackLess](depth
:number
,options
:InspectOptionsStylized
):string
Parameters
Parameter | Type |
---|---|
depth | number |
options | InspectOptionsStylized |
Returns
string
Inherited from
BaseError
.[customInspectSymbolStackLess]
Defined in
projects/shapeshift/src/lib/errors/BaseError.ts:19
toJSON()
toJSON():
BaseConstraintErrorJsonified
<T
>
Returns
BaseConstraintErrorJsonified
<T
>
Overrides
Defined in
projects/shapeshift/src/lib/errors/BaseConstraintError.ts:34