Package com.vaadin.flow.server
Class ErrorEvent
java.lang.Object
com.vaadin.flow.server.ErrorEvent
- All Implemented Interfaces:
Serializable
An error thrown by the framework and handled by an
ErrorHandler
.
Typically handled by VaadinSession.getErrorHandler()
.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionErrorEvent
(Throwable throwable) Creates an error event which wraps the given throwable. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandler
findErrorHandler
(VaadinSession session) Finds the error handler for the given session.Gets the contained throwable, the cause of the error.
-
Constructor Details
-
ErrorEvent
Creates an error event which wraps the given throwable.- Parameters:
throwable
- the throwable to wrap
-
-
Method Details
-
getThrowable
Gets the contained throwable, the cause of the error.- Returns:
- the throwable that caused the error
-
findErrorHandler
Finds the error handler for the given session.- Parameters:
session
- the active session- Returns:
- An ErrorHandler for the session or null if none was found
-