Package io.jmix.flowui.event
Class BackgroundTaskUnhandledExceptionEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.flowui.event.AbstractBackgroundTaskEvent
io.jmix.flowui.event.BackgroundTaskUnhandledExceptionEvent
- All Implemented Interfaces:
Serializable
Event is published if the
BackgroundTask.done(Object)
throws an exception and executor
cannot handle it.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundTaskUnhandledExceptionEvent
(Object source, BackgroundTask task, Exception exception) -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that occurred during the execution of the background task if the task'sdone(Object)
method fails and the executor is unable to handle it.Methods inherited from class io.jmix.flowui.event.AbstractBackgroundTaskEvent
getTask, isStopPropagation, setStopPropagation
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
BackgroundTaskUnhandledExceptionEvent
public BackgroundTaskUnhandledExceptionEvent(Object source, BackgroundTask task, Exception exception)
-
-
Method Details
-
getException
Returns the exception that occurred during the execution of the background task if the task'sdone(Object)
method fails and the executor is unable to handle it.- Returns:
- the exception that caused the failure
-