Skip to main content

Class: abstract BaseConstraintError<T>

Extends

Extended by

Type Parameters

Type ParameterDefault type
Tunknown

Constructors

new BaseConstraintError()

new BaseConstraintError<T>(constraint: ConstraintErrorNames, message: string, given: T): BaseConstraintError<T>

Parameters

ParameterType
constraintConstraintErrorNames
messagestring
givenT

Returns

BaseConstraintError<T>

Overrides

BaseError.constructor

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

ParameterType
depthnumber
optionsInspectOptionsStylized

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

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError.[customInspectSymbolStackLess]

Defined in

projects/shapeshift/src/lib/errors/BaseError.ts:19


toJSON()

toJSON(): BaseConstraintErrorJsonified<T>

Returns

BaseConstraintErrorJsonified<T>

Overrides

BaseError.toJSON

Defined in

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