Skip to main content

Class: ValidationError

Extends

Extended by

Constructors

new ValidationError()

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

Parameters

ParameterType
validatorstring
messagestring
givenunknown

Returns

ValidationError

Overrides

BaseError.constructor

Defined in

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

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Inherited from

BaseError.[customInspectSymbol]

Defined in

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


[customInspectSymbolStackLess]()

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

Parameters

ParameterType
depthnumber
optionsInspectOptionsStylized

Returns

string

Overrides

BaseError.[customInspectSymbolStackLess]

Defined in

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


toJSON()

toJSON(): ValidationErrorJsonified

Returns

ValidationErrorJsonified

Overrides

BaseError.toJSON

Defined in

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