We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.
Class ErrorEvent
- java.lang.Object
-
- com.vaadin.flow.server.ErrorEvent
-
All Implemented Interfaces:
public class ErrorEvent extends Object implements Serializable
An error thrown by the framework and handled by an
ErrorHandler
. Typically handled byVaadinSession.getErrorHandler()
.Since:
1.0
See Also:
-
-
Constructor Summary
Constructors Constructor and Description ErrorEvent(Throwable throwable)
Creates an error event which wraps the given throwable.
-
Method Summary
All Methods Modifier and Type Method and Description static ErrorHandler
findErrorHandler(VaadinSession session)
Finds the error handler for the given session.
Throwable
getThrowable()
Gets the contained throwable, the cause of the error.
-
-
-
Constructor Detail
-
ErrorEvent
public ErrorEvent(Throwable throwable)
Creates an error event which wraps the given throwable.
Parameters:
throwable
- the throwable to wrap
-
-
Method Detail
-
getThrowable
public Throwable getThrowable()
Gets the contained throwable, the cause of the error.
Returns:
the throwable that caused the error
-
findErrorHandler
public static ErrorHandler findErrorHandler(VaadinSession session)
Finds the error handler for the given session.
Parameters:
session
- the active sessionReturns:
An ErrorHandler for the session or null if none was found
-
-