Skip to main content

Class: abstract BaseConstraintError<T>

Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:24

Extends

Extended by

Type Parameters

Type ParameterDefault type
Tunknown

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

ParameterType
constraintConstraintErrorNames
messagestring
givenT

Returns

BaseConstraintError<T>

Overrides

BaseError.constructor

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

ParameterType
depthnumber
optionsInspectOptionsStylized

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

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError.[customInspectSymbolStackLess]


toJSON()

toJSON(): BaseConstraintErrorJsonified<T>

Defined in: projects/shapeshift/src/lib/errors/BaseConstraintError.ts:34

Returns

BaseConstraintErrorJsonified<T>

Overrides

BaseError.toJSON