Package rife.continuations.exceptions
Class PauseException
java.lang.Object
java.lang.Throwable
java.lang.Error
rife.tools.exceptions.LightweightError
rife.continuations.exceptions.PauseException
- All Implemented Interfaces:
Serializable
,ControlFlowRuntimeException
This exception will be thrown when a pause continuation is triggered.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionPauseException
(ContinuationContext context) [PRIVATE AND UNSUPPORTED] Instantiates a new pause exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the context of this pause 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
-
PauseException
[PRIVATE AND UNSUPPORTED] Instantiates a new pause 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 pause continuation.- Returns:
- this pause continuation's context
- Since:
- 1.0
-