Class FetchDoneEvent


public class FetchDoneEvent extends BaseJBStrapEvent

This class contains the data of the fetch done event.

These are the following:
  • The client on which the event occurred
  • The ID of the component on which the event occurred
  • The event type
  • The instance of the component, on which the event occurred
  • The event's unique ID
  • If an error was encountered during the query
  • If there was an error, the error message
  • If there was an error, the error class
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • FetchDoneEvent

      public FetchDoneEvent()
  • Method Details

    • hasError

      public boolean hasError()
      Determines, if an error was encountered during the fetch operation
      Returns:
      If true, an error did occur, otherwise not.
    • getErrorMessage

      public String getErrorMessage()
      If an error did occur, gets the error message.
      Returns:
      The error message, if an error occurred, otherwise null
    • getException

      public Throwable getException()
      If an error did occur, gets the error class.
      Returns:
      The error class, if an error occurred, otherwise null