Package co.paralleluniverse.fibers
Class SuspendExecution
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- co.paralleluniverse.fibers.SuspendExecution
-
- All Implemented Interfaces:
java.io.Serializable
public final class SuspendExecution extends java.lang.Exception
An exception used to initiate the control transfer. Methods which are declared to throw this exception are "suspendable". This exception must always be propagated and never be caught.
Try/catch handlers are allowed:
try{ doSomething(); } catch(Throwable ex) { handleException(ex); }
Quasar instrumentation will enhance the bytecode of these methods to support suspension and continuation of their execution; they will not catch
SuspendExecution
.This class is for internal Quasar use. Throwing an instance of this class or a subclass of it will break things in strange ways.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SuspendExecution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
fillInStackTrace()
-