Package com.vaadin.flow.server.data
Class DataCountFailedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.server.data.AbstractDataCountEvent
com.vaadin.flow.server.data.DataCountFailedEvent
- All Implemented Interfaces:
Serializable
Event fired through the
service event bus
when a count query threw, before the matching DataCountEndedEvent.
The framework propagates the throwable independently of this event.- Since:
- 25.3
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionDataCountFailedEvent(UI ui, Component component, boolean filtered, Throwable error) Creates a new event. -
Method Summary
Methods inherited from class com.vaadin.flow.server.data.AbstractDataCountEvent
getComponent, getSource, getUI, isFilteredMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DataCountFailedEvent
Creates a new event.- Parameters:
ui- the UI the counting component belongs to, notnullcomponent- the component whose data is being counted, ornullif it could not be resolvedfiltered- 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
-