|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.mozilla.javascript.RhinoException org.mozilla.javascript.JavaScriptException
public class 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 WrappedException.WrappedException(Throwable) 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 | |
---|---|
java.lang.String |
details()
|
int |
getLineNumber()
Deprecated. Use RhinoException.lineNumber() from the super class. |
java.lang.String |
getSourceName()
Deprecated. Use RhinoException.sourceName() from the super class. |
java.lang.Object |
getValue()
|
Methods inherited from class org.mozilla.javascript.RhinoException |
---|
columnNumber, getMessage, getScriptStackTrace, getScriptStackTrace, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, sourceName |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaScriptException(java.lang.Object value)
WrappedException.WrappedException(Throwable)
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.String details()
details
in class RhinoException
public java.lang.Object getValue()
public java.lang.String getSourceName()
RhinoException.sourceName()
from the super class.
public int getLineNumber()
RhinoException.lineNumber()
from the super class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |