API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.script. ScriptException View Source
Author(s)
Mike Grogan
Since
1.6
Version
1.0
Serial
Hierarchy
 Object
      Throwable
          Exception
              ScriptException
Implements
Subclasses
Description
public exception ScriptException
  The generic Exception class for the Scripting APIs.
See also:   
Constructors
public ScriptException (Exception e)
  Creates a ScriptException wrapping an Exception thrown by an underlying interpreter.
public ScriptException (String s)
  Creates a ScriptException with a String to be used in its message.
public ScriptException (String message, String fileName, int lineNumber)
  Creates a ScriptException with message, filename and linenumber to be used in error messages.
public ScriptException (String message, String fileName, int lineNumber, int columnNumber)
  ScriptException constructor specifying message, filename, line number and column number.
Methods
Hide/Show inherited methods
publicsynchronizednative Throwable fillInStackTrace () [Inherited From Throwable]
  Fills in the execution stack trace.
public Throwable getCause () [Inherited From Throwable]
  Returns the cause of this throwable or null if the cause is nonexistent or unknown.
public int getColumnNumber ()
  Get the column number on which an error occurred.
public String getFileName ()
  Get the source of the script causing the error.
public int getLineNumber ()
  Get the line number on which an error occurred.
public String getLocalizedMessage () [Inherited From Throwable]
  Creates a localized description of this throwable.
public String getMessage () [Overrides Throwable]
  Returns a message containing the String passed to a constructor as well as line and column numbers and filename if any of these are known.
public StackTraceElement getStackTrace () [Inherited From Throwable]
  Provides programmatic access to the stack trace information printed by Throwable.printStackTrace().
publicsynchronized Throwable initCause (Throwable cause) [Inherited From Throwable]
  Initializes the cause of this throwable to the specified value.
public void printStackTrace () [Inherited From Throwable]
  Prints this throwable and its backtrace to the standard error stream.
public void printStackTrace (PrintStream s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print stream.
public void printStackTrace (PrintWriter s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print writer.
public void setStackTrace (StackTraceElement stackTrace) [Inherited From Throwable]
  Sets the stack trace elements that will be returned by Throwable.getStackTrace() and printed by Throwable.printStackTrace() and related methods.
public String toString () [Inherited From Throwable]
  Returns a short description of this throwable.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar