com.sun.slamd.scripting.engine
Class ContinueException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.slamd.scripting.engine.ScriptException
              extended bycom.sun.slamd.scripting.engine.ContinueException
All Implemented Interfaces:
java.io.Serializable

public class ContinueException
extends ScriptException

This class defines a special kind of script exception that may be thrown if a continue instruction is encountered inside a loop. The continue exception indicates that the execution of the current loop iteration should terminate and that the next iteration should start if appropriate. To deal with the performance penalty that can be associated with exceptions (particularly, filling in the stack trace which is not even important in this case), a static singleton instance will be created that should be thrown instead of creating a new continue exception every time.

See Also:
Serialized Form

Field Summary
static ContinueException CONTINUE
          The singleton instance of this exception that should be thrown whenever a continue is necessary.
 
Methods inherited from class com.sun.slamd.scripting.engine.ScriptException
getParentException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Field Detail

CONTINUE

public static final ContinueException CONTINUE
The singleton instance of this exception that should be thrown whenever a continue is necessary.