Skip to main content

Class: ValidationError

Defined in: ts/src/errors.ts:57

Raised when generic validation fails (bad page/limit, mutually exclusive cursors, ...).

Extends

Extended by

Constructors

Constructor

new ValidationError(message, options?): ValidationError

Defined in: ts/src/errors.ts:60

Parameters

message

string

options?

PaginateErrorOptions & object = {}

Returns

ValidationError

Overrides

PaginateError.constructor

Properties

cause?

optional cause?: unknown

Defined in: website/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from

PaginateError.cause


details

readonly details: Readonly<Record<string, unknown>>

Defined in: ts/src/errors.ts:17

Structured, programmatic detail payload (mirrors pypaginate's details).

Inherited from

PaginateError.details


field?

readonly optional field?: string

Defined in: ts/src/errors.ts:58


message

message: string

Defined in: website/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from

PaginateError.message


name

name: string

Defined in: website/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from

PaginateError.name


stack?

optional stack?: string

Defined in: website/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

PaginateError.stack