|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.mozilla.javascript.JavaScriptException
Java reflection of JavaScript exceptions. Instances of this class are thrown by the JavaScript 'throw' keyword.
| Constructor Summary | |
|---|---|
JavaScriptException(java.lang.Object value)
Deprecated. Use EvaluatorException.EvaluatorException(String) to report
exceptions in Java code. |
|
JavaScriptException(java.lang.Object value,
java.lang.String sourceName,
int lineNumber)
Create a JavaScript exception wrapping the given JavaScript value |
|
| Method Summary | |
|---|---|
int |
getLineNumber()
Returns the line number of the statement causing the error, or zero if not available. |
java.lang.String |
getSourceName()
Get the name of the source containing the error, or null if that information is not available. |
java.lang.Object |
getValue()
|
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JavaScriptException(java.lang.Object value)
EvaluatorException.EvaluatorException(String) to report
exceptions in Java code.
public JavaScriptException(java.lang.Object value,
java.lang.String sourceName,
int lineNumber)
value - the JavaScript value thrown.| Method Detail |
public java.lang.Object getValue()
public java.lang.String getSourceName()
public int getLineNumber()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||