Skip to content
qubeejs/angular
3.8/API/InvalidLimitError

InvalidLimitError

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

Defined in: src/lib/errors/invalid-limit.error.ts:9

Thrown when a limit value does not satisfy the active driver’s constraints

Validation is driver-scoped: most drivers require an integer >= 1, while the NestJS driver additionally accepts -1 as a “fetch all items” sentinel (as documented by nestjs-paginate). The message is tailored accordingly so the caller understands which values are permitted.

  • Error

new InvalidLimitError(limit, allowFetchAll?): InvalidLimitError

Defined in: src/lib/errors/invalid-limit.error.ts:15

number

The rejected limit value

boolean = false

Whether the active driver accepts -1 (fetch all)

InvalidLimitError

Error.constructor

message: string

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

Error.message


name: string

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

Error.name


optional stack?: string

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

Error.stack