Package com.vaadin.flow.server.data
Class DataFetchFailedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.server.data.AbstractDataFetchEvent
com.vaadin.flow.server.data.DataFetchFailedEvent
- All Implemented Interfaces:
Serializable
Event fired through the
service event bus
when a fetch query threw, before the matching DataFetchEndedEvent.
The throwable may be raised either by the call that started the fetch or
while its items were being consumed. The framework propagates it
independently of this event.- Since:
- 25.3
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDataFetchFailedEvent(UI ui, Component component, int offset, int limit, boolean filtered, Throwable error) Creates a new event. -
Method Summary
Methods inherited from class com.vaadin.flow.server.data.AbstractDataFetchEvent
getComponent, getLimit, getOffset, getSource, getUI, isFilteredMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DataFetchFailedEvent
public DataFetchFailedEvent(UI ui, Component component, int offset, int limit, boolean filtered, Throwable error) Creates a new event.- Parameters:
ui- the UI the fetching component belongs to, notnullcomponent- the component whose data is being fetched, ornullif it could not be resolvedoffset- the index of the first item requestedlimit- the number of items requestedfiltered- whether a filter was set on the queryerror- the throwable raised by the data provider
-
-
Method Details
-
getError
Gets the throwable raised by the data provider.- Returns:
- the throwable
-