com.sun.slamd.scripting.engine
Class StopRunningException

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

public class StopRunningException
extends ScriptException

This class defines an exception that will be thrown if the script should stop running. It will be propogated all the way up to the parser and will therefore cause the script to stop running immediately.

See Also:
Serialized Form

Constructor Summary
StopRunningException(int lineNumber)
          Creates a new stop running exception.
StopRunningException(int lineNumber, java.lang.Exception parentException)
          Creates a new stop running exception.
StopRunningException(int lineNumber, java.lang.String message)
          Creates a new stop running exception with the specifed message.
StopRunningException(int lineNumber, java.lang.String message, java.lang.Exception parentException)
          Creates a new stop running exception with the specifed message.
StopRunningException(java.lang.String message)
          Creates a new stop running exception with the specified message.
StopRunningException(java.lang.String message, java.lang.Exception parentException)
          Creates a new stop running exception with the specified message.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this stop running exception.
 
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
 

Constructor Detail

StopRunningException

public StopRunningException(java.lang.String message)
Creates a new stop running exception with the specified message.

Parameters:
message - The message that explains the cause of the exception.

StopRunningException

public StopRunningException(java.lang.String message,
                            java.lang.Exception parentException)
Creates a new stop running exception with the specified message.

Parameters:
message - The message that explains the cause of the exception.
parentException - The parent exception that triggered this stop running exception.

StopRunningException

public StopRunningException(int lineNumber)
Creates a new stop running exception.

Parameters:
lineNumber - The line number of the script that generated the exception.

StopRunningException

public StopRunningException(int lineNumber,
                            java.lang.Exception parentException)
Creates a new stop running exception.

Parameters:
lineNumber - The line number of the script that generated the exception.
parentException - The parent exception that triggered this stop running exception.

StopRunningException

public StopRunningException(int lineNumber,
                            java.lang.String message)
Creates a new stop running exception with the specifed message.

Parameters:
lineNumber - The line number of the script that generated the exception.
message - The message that explains the cause of the exception.

StopRunningException

public StopRunningException(int lineNumber,
                            java.lang.String message,
                            java.lang.Exception parentException)
Creates a new stop running exception with the specifed message.

Parameters:
lineNumber - The line number of the script that generated the exception.
message - The message that explains the cause of the exception.
parentException - The parent exception that triggered this stop running exception.
Method Detail

getParentException

public java.lang.Exception getParentException()
Retrieves the parent exception that triggered this stop running exception.

Overrides:
getParentException in class ScriptException
Returns:
The parent exception that triggered this stop running exception, or null if no parent exception is available.