Interface PaginationErrorCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PaginationErrorCallback
Invoked when an async page load fails (exceptional completion, null future, synchronous throw, or timeout). Runs on the same thread that applies the settle — always the main server thread for settles routed through BukkitSettleDispatcher.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(PageRequest request, Throwable error)
    Handles a failed page load.
  • Method Details

    • onError

      void onError(PageRequest request, Throwable error)
      Handles a failed page load.
      Parameters:
      request - the request that failed, never null
      error - the failure cause, never null