Class PauseException

All Implemented Interfaces:
Serializable, ControlFlowRuntimeException

public class PauseException extends LightweightError implements ControlFlowRuntimeException
This exception will be thrown when a pause continuation is triggered.
Since:
1.0
See Also:
  • Constructor Details

    • PauseException

      public PauseException(ContinuationContext context)
      [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

      public ContinuationContext getContext()
      Retrieves the context of this pause continuation.
      Returns:
      this pause continuation's context
      Since:
      1.0