public final class SuspendableException extends Exception
SuspendableException
is an exception used to mark tasks that can possibly suspend. The constructor is private
to disallow instance creation, it is a \emph{marker} exception. Runtime implementations can choose to implement such tasks via blocking of worker threads or or via non-blocking using continuations.
An exception used to initiate the control transfer.
It does not support stack traces.
Methods which are declared to throw this exception are "suspendable". This exception must always be propagated and never be caught.
Generic try/catch handlers are allowed:
try{ doSomething(); } catch(Throwable ex) {
handleException(ex); }
The instrumentation ANT task will enhance the bytecode of these methods to support suspension and continuation of their execution.
Modifier and Type | Field and Description |
---|---|
static SuspendableException |
instance |
Modifier and Type | Method and Description |
---|---|
Throwable |
fillInStackTrace() |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final SuspendableException instance
public Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.