|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.ErrorEvent
public class ErrorEvent
An error thrown by the framework and handled by an ErrorHandler
.
Typically handled by VaadinSession.getErrorHandler()
but can also be
handled by a Connector
specific handler, set using
ClientConnector.setErrorHandler(ErrorHandler)
.
Constructor Summary | |
---|---|
ErrorEvent(java.lang.Throwable t)
|
Method Summary | |
---|---|
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. |
java.lang.Throwable |
getThrowable()
Gets the contained throwable, the cause of the error. |
void |
setThrowable(java.lang.Throwable throwable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorEvent(java.lang.Throwable t)
Method Detail |
---|
public java.lang.Throwable getThrowable()
public void setThrowable(java.lang.Throwable throwable)
public static ErrorHandler findErrorHandler(ClientConnector connector)
Returns a DefaultErrorHandler
if no error handler was found
connector
- The target connector
public static ErrorHandler findErrorHandler(VaadinSession session)
connector
- The target connector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |