Package com.vaadin.flow.server
Class DefaultErrorHandler
java.lang.Object
com.vaadin.flow.server.DefaultErrorHandler
- All Implemented Interfaces:
ErrorHandler,Serializable
The default implementation of
ErrorHandler.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(ErrorEvent event) Invoked when an error occurs.static ThrowableVaadin wraps exceptions in its own and due to reflection usage there might be also other irrelevant exceptions that make no sense for Vaadin users (~developers using Vaadin).
-
Constructor Details
-
DefaultErrorHandler
public DefaultErrorHandler()
-
-
Method Details
-
error
Description copied from interface:ErrorHandlerInvoked when an error occurs.- Specified by:
errorin interfaceErrorHandler- Parameters:
event- the fired event.
-
findRelevantThrowable
Vaadin wraps exceptions in its own and due to reflection usage there might be also other irrelevant exceptions that make no sense for Vaadin users (~developers using Vaadin). This method tries to choose the relevant one to be reported.- Parameters:
t- a throwable passed to ErrorHandler- Returns:
- the throwable that is relevant for Vaadin users
-