Package com.jbstrap.core.event
Class FetchDoneEvent
java.lang.Object
com.jbstrap.core.event.BaseEvent
com.jbstrap.core.event.BaseJBStrapEvent
com.jbstrap.core.event.FetchDoneEvent
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf an error did occur, gets the error message.If an error did occur, gets the error class.boolean
hasError()
Determines, if an error was encountered during the fetch operationMethods inherited from class com.jbstrap.core.event.BaseJBStrapEvent
fireEvent
Methods inherited from class com.jbstrap.core.event.BaseEvent
getClient, getComponent, getEventId, getEventType, getSenderId
-
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
If an error did occur, gets the error message.- Returns:
- The error message, if an error occurred, otherwise
null
-
getException
If an error did occur, gets the error class.- Returns:
- The error class, if an error occurred, otherwise
null
-