Skip to main content

Class: abstract BaseConstraintError<T>

Extends

Extended by

Type parameters

Type parameterValue
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

Source

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

Properties

constraint

readonly constraint: ConstraintErrorNames

Source

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


given

readonly given: T

Source

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

Methods

[customInspectSymbolStackLess]()

protected abstract [customInspectSymbolStackLess](depth: number, options: InspectOptionsStylized): string

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError . [customInspectSymbolStackLess]

Source

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


[customInspectSymbol]()

protected [customInspectSymbol](depth: number, options: InspectOptionsStylized): string

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError . [customInspectSymbol]

Source

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


toJSON()

toJSON(): BaseConstraintErrorJsonified<T>

Returns

BaseConstraintErrorJsonified<T>

Overrides

BaseError . toJSON

Source

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