de.matthiasmann.continuations
Class SuspendExecution

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.matthiasmann.continuations.SuspendExecution
All Implemented Interfaces:
java.io.Serializable

public final class SuspendExecution
extends java.lang.Exception

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.

See Also:
Serialized Form

Method Summary
 java.lang.Throwable fillInStackTrace()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Overrides:
fillInStackTrace in class java.lang.Throwable