Class PaginationCeilingExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.ankatech.ankasecure.sdk.exception.PaginationCeilingExceededException
All Implemented Interfaces:
Serializable

public final class PaginationCeilingExceededException extends RuntimeException
Thrown by the auto-paginating listAllKeys(filters) when the server reports more pages than the SDK's defensive ceiling allows (ceil(totalElements/size)+1 iterations, hard-capped at 10000 pages). The loop THROWS rather than silently truncating — a partial "all keys" result would be a correctness lie.

Hitting this ceiling means the tenant's key population is beyond what a single in-memory aggregation should carry; switch to the paged API (listKeys(filters, page, size)) and process pages incrementally.

Since:
3.0.0
See Also:
  • Field Details

    • HARD_PAGE_CAP

      public static final int HARD_PAGE_CAP
      Defensive hard cap on auto-pagination (10,000 pages × 200 = 2,000,000 keys).
      See Also:
  • Constructor Details

    • PaginationCeilingExceededException

      public PaginationCeilingExceededException(long totalElements, int totalPages)
  • Method Details

    • getTotalElements

      public long getTotalElements()
    • getTotalPages

      public int getTotalPages()