Class AwaitException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.nustaq.kontraktor.AwaitException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
KTimeoutException

public class AwaitException
extends java.lang.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:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    AwaitException​(java.lang.Object error)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getError()  

    Methods inherited from class java.lang.Throwable

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getError

      public java.lang.Object getError()