public class ErrorEvent extends Object implements Serializable
ErrorHandler
.
Typically handled by VaadinSession.getErrorHandler()
but can also be
handled by a Connector
specific handler, set using
ClientConnector.setErrorHandler(ErrorHandler)
.Constructor and Description |
---|
ErrorEvent(Throwable t) |
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
findErrorHandler(ClientConnector connector)
Method for finding the error handler for the given connector.
|
static ErrorHandler |
findErrorHandler(VaadinSession session)
Method for finding the error handler for the given session.
|
Throwable |
getThrowable()
Gets the contained throwable, the cause of the error.
|
void |
setThrowable(Throwable throwable) |
public ErrorEvent(Throwable t)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
public static ErrorHandler findErrorHandler(ClientConnector connector)
Returns a DefaultErrorHandler
if no error handler was found
connector
- The target connectorpublic static ErrorHandler findErrorHandler(VaadinSession session)
session
- The target sessionCopyright © 2018 Vaadin Ltd. All rights reserved.