|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
com.uwyn.rife.tools.exceptions.LightweightError
com.uwyn.rife.continuations.exceptions.AnswerException
public class AnswerException
This exception will be thrown when an answer continuation is triggered.
| Constructor Summary | |
|---|---|
AnswerException(ContinuationContext context,
Object answer)
[PRIVATE AND UNSUPPORTED] Instantiates a new answer exception. |
|
| Method Summary | |
|---|---|
Object |
getAnswer()
Retrieves the answered value. |
ContinuationContext |
getContext()
Retrieves the context of this answer continuation. |
| Methods inherited from class com.uwyn.rife.tools.exceptions.LightweightError |
|---|
fillInStackTrace, getStackTrace, getUseFastExceptions, setUseFastExceptions |
| Methods inherited from class java.lang.Throwable |
|---|
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnswerException(ContinuationContext context,
Object answer)
This is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
context - the active continuation contextanswer - the answered value| Method Detail |
|---|
public ContinuationContext getContext()
public Object getAnswer()
null if no answer was provided
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||