Package org.mozilla.javascript
Class JavaScriptException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.mozilla.javascript.RhinoException
-
- org.mozilla.javascript.JavaScriptException
-
- All Implemented Interfaces:
Serializable
public class JavaScriptException extends RhinoException
Java reflection of JavaScript exceptions. Instances of this class are thrown by the JavaScript 'throw' keyword.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JavaScriptException(Object value)
Deprecated.UseWrappedException(Throwable)
to report exceptions in Java code.JavaScriptException(Object value, String sourceName, int lineNumber)
Create a JavaScript exception wrapping the given JavaScript value
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
details()
int
getLineNumber()
Deprecated.UseRhinoException.lineNumber()
from the super class.String
getSourceName()
Deprecated.UseRhinoException.sourceName()
from the super class.Object
getValue()
-
Methods inherited from class org.mozilla.javascript.RhinoException
columnNumber, getMessage, getScriptStack, getScriptStack, getScriptStackTrace, getScriptStackTrace, getScriptStackTrace, getStackStyle, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, setStackStyle, sourceName, useMozillaStackStyle, usesMozillaStackStyle
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JavaScriptException
@Deprecated public JavaScriptException(Object value)
Deprecated.UseWrappedException(Throwable)
to report exceptions in Java code.
-
-
Method Detail
-
details
public String details()
- Overrides:
details
in classRhinoException
-
getValue
public Object getValue()
- Returns:
- the value wrapped by this exception
-
getSourceName
@Deprecated public String getSourceName()
Deprecated.UseRhinoException.sourceName()
from the super class.
-
getLineNumber
@Deprecated public int getLineNumber()
Deprecated.UseRhinoException.lineNumber()
from the super class.
-
-