# Class AsyncResource.CancellationException

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

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `AsyncResource<V>`

public static class AsyncResource.CancellationException extends RuntimeException
Exception thrown when the AsyncResource is cancelled. Use `invalid input: 'to test a particular exception to see if it resulted from cancelling an AsyncResource as this will return turn true if the exception itself is a CancellationException, or if the exception was caused by a CancellationException. #### Since 7.0 #### See also - #isCancelled(java.lang.Throwable)'`

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CancellationException()`

- ## Method Summary

  ### Methods inherited from class Throwable

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

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CancellationException

    public CancellationException()