Skip to content

Taxum / @taxum/core / extract / ValidationError

Class: ValidationError

Defined in: extract/error.ts:10

Error thrown when a schema validation fails.

Extends

Extended by

Constructors

Constructor

new ValidationError(status, message, issues, source): ValidationError

Defined in: extract/error.ts:14

Parameters

status

StatusCode

message

string

issues

readonly Issue[]

source

ValidationErrorSource

Returns

ValidationError

Overrides

ClientError.constructor

Properties

issues

readonly issues: readonly Issue[]

Defined in: extract/error.ts:11


message

readonly message: string

Defined in: util/client-error.ts:21

Inherited from

ClientError.message


source

readonly source: ValidationErrorSource

Defined in: extract/error.ts:12


status

readonly status: StatusCode

Defined in: util/client-error.ts:20

Inherited from

ClientError.status

Accessors

name

Get Signature

get name(): string

Defined in: util/client-error.ts:28

Returns

string

Inherited from

ClientError.name

Methods

[TO_HTTP_RESPONSE]()

[TO_HTTP_RESPONSE](): HttpResponse

Defined in: util/client-error.ts:32

Returns

HttpResponse

Inherited from

ClientError.[TO_HTTP_RESPONSE]