| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.script.ScriptException
public class ScriptException
ScriptException is a generic checked exception thrown by mehtods of scripting API. Checked exceptions thrown by the underlying interpreters must be caught and used to initialize ScriptExceptions.
| Constructor Summary | |
|---|---|
| ScriptException(java.lang.Exception exception)Constructs a new exception with the specified cause. | |
| ScriptException(java.lang.String message)Constructs a new exception with the specified detailed message. | |
| ScriptException(java.lang.String message,
                java.lang.String fileName,
                int lineNumber)Constructs a new exception with the spcified detailed message of cause, the file name of the source of script and the line number of the script where the error has occured. | |
| ScriptException(java.lang.String message,
                java.lang.String fileName,
                int lineNumber,
                int columnNumber)Constructs a new exception using the detailed message of cause, file name which contains the script, line number and column number in which the error has occured. | |
| Method Summary | |
|---|---|
|  int | getColumnNumber()Retrieves the column number of the script where the error has occured. | 
|  java.lang.String | getFileName()Retrieves the file name in which the script is contained. | 
|  int | getLineNumber()Retrieves the line number of the script where the error has occured. | 
|  java.lang.String | getMessage()Retrieves a String describing the cause of error. | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ScriptException(java.lang.Exception exception)
exception - the cause of exceptionpublic ScriptException(java.lang.String message)
message - the datailed message which caused the 
        exception
public ScriptException(java.lang.String message,
                       java.lang.String fileName,
                       int lineNumber)
message - the detailed message of cause of exceptionfileName - the file name which contains the scriptlineNumber - the line number of the script where the error has 
                   occured
public ScriptException(java.lang.String message,
                       java.lang.String fileName,
                       int lineNumber,
                       int columnNumber)
message - the detailed message of the cause of 
                     exceptionfileName - the name of the file which contains the
                     scriptlineNumber - the line number of the script where the 
                     error has occuredcolumnNumber - the column number of the script where the
                     error has occured| Method Detail | 
|---|
public java.lang.String getFileName()
public int getColumnNumber()
public int getLineNumber()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||