org.mozilla.javascript
public class JavaScriptException extends RhinoException
Constructor Summary | |
---|---|
JavaScriptException(Object value) | |
JavaScriptException(Object value, String sourceName, int lineNumber)
Create a JavaScript exception wrapping the given JavaScript value
|
Method Summary | |
---|---|
String | details() |
int | getLineNumber() |
String | getSourceName() |
Object | getValue() |
Deprecated: Use {@link WrappedException#WrappedException(Throwable)} to report exceptions in Java code.
Parameters: value the JavaScript value thrown.
Deprecated: Use {@link RhinoException#lineNumber()} from the super class.
Deprecated: Use {@link RhinoException#sourceName()} from the super class.
Returns: the value wrapped by this exception