Skip to content

basalt / search/src / SearchPaginationError

Class: SearchPaginationError ​

Defined in: search/src/search.ts:18

limit/offset that is not a non-negative integer, or a limit above the configured maxLimit. Both usually arrive from a query string, so they are checked here once rather than left to each engine to reject (or not).

Extends ​

Constructors ​

Constructor ​

> new SearchPaginationError(message): SearchPaginationError

Defined in: search/src/search.ts:20

Parameters ​

message ​

string

Returns ​

SearchPaginationError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 400 = 400

Defined in: search/src/search.ts:19

Released under the MIT License.