public static class AsyncResource.AsyncExecutionException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. 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.