Skip to content

Class: ValidationError

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ValidationError

Class: ValidationError

Defined in: src/errors.ts:201

Client-side validation error.

Thrown before a request is sent when input fails client-side validation.

Extends

Constructors

Constructor

new ValidationError(message, field?): ValidationError

Defined in: src/errors.ts:207

Parameters

message

string

field?

string

Returns

ValidationError

Overrides

ReasoningLayerError.constructor

Properties

cause?

optional cause: unknown

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Inherited from

ReasoningLayerError.cause


field

readonly field: string | undefined

Defined in: src/errors.ts:205

The field that failed validation, if applicable.


message

message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from

ReasoningLayerError.message


name

name: string = 'ValidationError'

Defined in: src/errors.ts:202

Overrides

ReasoningLayerError.name


stack?

optional stack: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from

ReasoningLayerError.stack