Package com.vaadin.flow.server
Class DefaultErrorHandler
- java.lang.Object
-
- com.vaadin.flow.server.DefaultErrorHandler
-
- All Implemented Interfaces:
ErrorHandler
,Serializable
public class DefaultErrorHandler extends Object implements ErrorHandler
The default implementation ofErrorHandler
.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
error(ErrorEvent event)
Invoked when an error occurs.static Throwable
findRelevantThrowable(Throwable t)
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).
-
-
-
Method Detail
-
error
public void error(ErrorEvent event)
Description copied from interface:ErrorHandler
Invoked when an error occurs.- Specified by:
error
in interfaceErrorHandler
- Parameters:
event
- the fired event.
-
findRelevantThrowable
public static Throwable findRelevantThrowable(Throwable t)
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
-
-