Skip to main content

Class: ValidationError

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:5

Extends

Extended by

Constructors

new ValidationError()

new ValidationError(validator: string, message: string, given: unknown): ValidationError

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:9

Parameters

ParameterType
validatorstring
messagestring
givenunknown

Returns

ValidationError

Overrides

BaseError.constructor

Properties

given

readonly given: unknown

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:7


validator

readonly validator: string

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:6

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]()

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

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:25

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseError.[customInspectSymbolStackLess]


toJSON()

toJSON(): ValidationErrorJsonified

Defined in: projects/shapeshift/src/lib/errors/ValidationError.ts:16

Returns

ValidationErrorJsonified

Overrides

BaseError.toJSON