Class SuspendExecution

  • All Implemented Interfaces:

    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

      Modifier Constructor Description
      protected SuspendExecution()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable fillInStackTrace()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SuspendExecution

        protected SuspendExecution()
    • Method Detail

      • fillInStackTrace

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