Skip to content
qubeejs/angular
3.8/API/PaginationNotSyncedError

PaginationNotSyncedError

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

Defined in: src/lib/errors/pagination-not-synced.error.ts:10

Thrown when a pagination helper that needs state.lastPage is called before PaginationService.paginate() has ever synced a value.

Examples: NgQubeeService.lastPage(), NgQubeeService.totalPages().

Safe-for-templates predicates (isLastPage, hasNextPage, etc.) do not throw and return conservative defaults instead.

  • Error

new PaginationNotSyncedError(action): PaginationNotSyncedError

Defined in: src/lib/errors/pagination-not-synced.error.ts:17

string

Short imperative describing what the caller was trying to do (e.g. “navigate to last page”, “read totalPages”). Surfaced in the error message so the cause is obvious at the call site.

PaginationNotSyncedError

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