Package rife.continuations.exceptions
Class StepBackException
java.lang.Object
java.lang.Throwable
java.lang.Error
rife.tools.exceptions.LightweightError
rife.continuations.exceptions.StepBackException
- All Implemented Interfaces:
Serializable
,ControlFlowRuntimeException
This exception will be thrown when a stepBack continuation is triggered.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionStepBackException
(ContinuationContext context) [PRIVATE AND UNSUPPORTED] Instantiates a new step-back exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the context of this step-back continuation.Looks up the ID of the target continuation of the step-back.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
-
StepBackException
[PRIVATE AND UNSUPPORTED] Instantiates a new step-back exception.This is used by the instrumented bytecode that provides continuations support, it's not intended for general use.
- Parameters:
context
- the active continuation context- Since:
- 1.0
-
-
Method Details
-
getContext
Retrieves the context of this step-back continuation.- Returns:
- this step-back continuation's context
- Since:
- 1.0
-
lookupStepBackId
Looks up the ID of the target continuation of the step-back.- Returns:
- the target continuation ID of the step-back; or
null
if the target continuation couldn't be found - Since:
- 1.0
-