com.sun.slamd.scripting.engine
Class ScriptException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.slamd.scripting.engine.ScriptException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BreakException, ContinueException, StopRunningException

public class ScriptException
extends java.lang.Exception

This class defines an exception that may be thrown if a problem occurs while parsing or executing an LDAP script.

See Also:
Serialized Form

Constructor Summary
ScriptException(int lineNumber, int characterNumber, java.lang.String message)
          Creates a new script exception with the specified line number and message.
ScriptException(int lineNumber, int characterNumber, java.lang.String message, java.lang.Exception parentException)
          Creates a new script exception with the specified line number and message.
ScriptException(int lineNumber, java.lang.String message)
          Creates a new script exception with the specified line number and message.
ScriptException(int lineNumber, java.lang.String message, java.lang.Exception parentException)
          Creates a new script exception with the specified line number and message.
ScriptException(java.lang.String message)
          Creates a new script exception with the specified message.
ScriptException(java.lang.String message, java.lang.Exception parentException)
          Creates a new script exception with the specified message.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this script 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

ScriptException

public ScriptException(java.lang.String message)
Creates a new script exception with the specified message.

Parameters:
message - The message that specifies the problem that occurred.

ScriptException

public ScriptException(java.lang.String message,
                       java.lang.Exception parentException)
Creates a new script exception with the specified message.

Parameters:
message - The message that specifies the problem that occurred.
parentException - The parent exception that triggered this script exception.

ScriptException

public ScriptException(int lineNumber,
                       java.lang.String message)
Creates a new script exception with the specified line number and message.

Parameters:
lineNumber - The line number of the script on which the problem occurred.
message - The message that specifies the problem that occurred.

ScriptException

public ScriptException(int lineNumber,
                       java.lang.String message,
                       java.lang.Exception parentException)
Creates a new script exception with the specified line number and message.

Parameters:
lineNumber - The line number of the script on which the problem occurred.
message - The message that specifies the problem that occurred.
parentException - The parent exception that triggered this script exception.

ScriptException

public ScriptException(int lineNumber,
                       int characterNumber,
                       java.lang.String message)
Creates a new script exception with the specified line number and message.

Parameters:
lineNumber - The line number of the script on which the problem occurred.
characterNumber - The character number of the line in which the problem occurred.
message - The message that specifies the problem that occurred.

ScriptException

public ScriptException(int lineNumber,
                       int characterNumber,
                       java.lang.String message,
                       java.lang.Exception parentException)
Creates a new script exception with the specified line number and message.

Parameters:
lineNumber - The line number of the script on which the problem occurred.
characterNumber - The character number of the line in which the problem occurred.
message - The message that specifies the problem that occurred.
parentException - The parent exception that triggered this script exception.
Method Detail

getParentException

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

Returns:
The parent exception that triggered this script exception, or null if no parent exception is available.