public static class AsyncResource.AsyncExecutionException
- Object
- Throwable
- Exception
- RuntimeException
- AsyncResource.AsyncExecutionException
Exception to wrap exceptions that are thrown during asynchronous execution.
This is thrown by #get() if the this resource failed with an exception.
Call AsyncExecutionException#getCause() to get the original exception.
Constructors
public AsyncExecutionException(Throwable cause) |
Methods
public Throwable getCause() | Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
public boolean isCancelled() | Returns true if this exception wraps a CancellationException, or another AsyncExecutionException that has #isCancelled() true. |
Inherited methods
Constructor details
AsyncExecutionException
public AsyncExecutionException(Throwable cause)Method details
getCause
public Throwable getCause()Returns the cause of this throwable or null if the cause is nonexistent or unknown.
isCancelled
public boolean isCancelled()Returns true if this exception wraps a
CancellationException, or another
AsyncExecutionException that has #isCancelled() true.Returns
True if this exception was caused by cancelling an AsyncResource.