|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sun.slamd.scripting.engine.ScriptException
com.sun.slamd.scripting.engine.ContinueException
public class ContinueException
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.
| Field Summary | |
|---|---|
static ContinueException |
CONTINUE
The singleton instance of this exception that should be thrown whenever a continue is necessary. |
| Method Summary |
|---|
| 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 |
|---|
public static final ContinueException CONTINUE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||