public interface ErrorHandlingRunnable extends Runnable, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(Exception exception)
Handles exceptions thrown during the execution of a FutureAccess.
|
static Exception |
processException(Runnable runnable,
Exception exception)
Process the given exception in the context of the given runnable.
|
void handleError(Exception exception)
exception - the thrown exception.static Exception processException(Runnable runnable, Exception exception)
ErrorHandlingRunnable, then the exception is
passed to handleError(Exception) and null is returned. If
handleError(Exception) throws an exception, that exception is
returned. If the runnable does not extend ErrorHandlingRunnable,
then the original exception is returned.runnable - the runnable for which the exception should be processed, not
nullexception - the exception to process, not nullnull if the exception is
fully processedCopyright © 2019 Vaadin Ltd. All rights reserved.