Package rife.continuations.exceptions
Class AnswerException
java.lang.Object
java.lang.Throwable
java.lang.Error
rife.tools.exceptions.LightweightError
rife.continuations.exceptions.AnswerException
- All Implemented Interfaces:
Serializable
,ControlFlowRuntimeException
This exception will be thrown when an answer continuation is triggered.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAnswerException
(ContinuationContext context, Object answer) [PRIVATE AND UNSUPPORTED] Instantiates a new answer exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the answered value.Retrieves the context of this answer continuation.Methods inherited from class rife.tools.exceptions.LightweightError
fillInStackTrace, getStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AnswerException
[PRIVATE AND UNSUPPORTED] Instantiates a new answer exception.This is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
- Parameters:
context
- the active continuation contextanswer
- the answered value- Since:
- 1.0
-
-
Method Details
-
getContext
Retrieves the context of this answer continuation.- Returns:
- this answer continuation's context
- Since:
- 1.0
-
getAnswer
Retrieves the answered value.- Returns:
- this answer continuation's answered value; or
null
if no answer was provided - Since:
- 1.0
-