Class AwaitException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
KTimeoutException

public class AwaitException extends RuntimeException
if await is used on a Promise to wait for its result (non-blocking!) any error object returned by the Promise will trigger a this Exception. In case the error object is instance of Throwable, this will be thrown directly.
See Also:
  • Constructor Details

    • AwaitException

      public AwaitException(Object error)
  • Method Details

    • getError

      public Object getError()