Package org.nustaq.kontraktor
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.ObjectgetError()
-
Constructor Details
-
AwaitException
public AwaitException(java.lang.Object error)
-
-
Method Details
-
getError
public java.lang.Object getError()
-