Skip to content

ValidationError

Defined in: error.ts:6

Represents a validation error for a specific key path

  • Error

new ValidationError(args): ValidationError

Defined in: error.ts:18

Create a validation error

KeyPath

Path to the invalid field

string | Error

Error message or Error object

ValidationError

Error.constructor

readonly optional cause?: Error

Defined in: error.ts:10

Error.cause


readonly key: KeyPath

Defined in: error.ts:7


readonly keyPath: KeyPath

Defined in: error.ts:8


readonly message: string

Defined in: error.ts:9

Error.message