Class AsyncResource.AsyncExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.util.AsyncResource.AsyncExecutionException
- All Implemented Interfaces:
Serializable
- Enclosing class:
AsyncResource<V>
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCause()booleanReturns true if this exception wraps aCancellationException, or another AsyncExecutionException that has#isCancelled()true.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AsyncExecutionException
-
-
Method Details
-
getCause
-
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.
Since
7.0
-