Class DataFetchFailedEvent

All Implemented Interfaces:
Serializable

public class DataFetchFailedEvent extends AbstractDataFetchEvent
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:
  • 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, not null
      component - the component whose data is being fetched, or null if it could not be resolved
      offset - the index of the first item requested
      limit - the number of items requested
      filtered - whether a filter was set on the query
      error - the throwable raised by the data provider
  • Method Details

    • getError

      public Throwable getError()
      Gets the throwable raised by the data provider.
      Returns:
      the throwable