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
Java reflection of JavaScript exceptions. Instances of this class are thrown by the JavaScript
'throw' keyword.
- See Also:
-
Field Summary
FieldsFields inherited from class RhinoException
interpreterLineData, interpreterStackInfo
-
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptException
(Object value) Deprecated.JavaScriptException
(Object value, String sourceName, int lineNumber) Create a JavaScript exception wrapping the given JavaScript value -
Method Summary
Modifier and TypeMethodDescriptiondetails()
int
Deprecated.UseRhinoException.lineNumber()
from the super class.Deprecated.UseRhinoException.sourceName()
from the super class.getValue()
Methods inherited from class RhinoException
columnNumber, formatStackTrace, getMessage, getScriptStack, getScriptStack, getScriptStackTrace, getScriptStackTrace, getScriptStackTrace, getStackStyle, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, recordErrorOrigin, setStackStyle, sourceName, useMozillaStackStyle, usesMozillaStackStyle
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
value
-
details
-
-
Constructor Details
-
JavaScriptException
Deprecated.UseWrappedException(Throwable)
to report exceptions in Java code. -
JavaScriptException
-
-
Method Details
-
details
- Overrides:
details
in classRhinoException
-
getDetails
-
getValue
- Returns:
- the value wrapped by this exception
-
getSourceName
Deprecated.UseRhinoException.sourceName()
from the super class. -
getLineNumber
Deprecated.UseRhinoException.lineNumber()
from the super class.
-
WrappedException(Throwable)
to report exceptions in Java code.