# Class AsyncResource.CancellationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.util.AsyncResource.CancellationException

Enclosing class:
  `AsyncResource<V>`

public static class AsyncResource.CancellationException extends RuntimeException

Exception thrown when the AsyncResource is cancelled. Use `AsyncResource.isCancelled(java.lang.Throwable)` to test a particular exception to see if it resulted from cancelling an AsyncResource as this will return true if the exception itself is a CancellationException, or if the exception was caused by a CancellationException.

##### See also

- #isCancelled(java.lang.Throwable)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CancellationException()`

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CancellationException

    public CancellationException()