Class: ValidationError
@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?
optionalcause:unknown
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
field
readonlyfield: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
name
name:
string='ValidationError'
Defined in: src/errors.ts:202
Overrides
stack?
optionalstack:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078