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
Java reflection of JavaScript exceptions. Instances of this class are thrown by the JavaScript
'throw' keyword.
- Author:
- Mike McCabe
- See Also:
-
Constructor Summary
ConstructorDescriptionJavaScriptException
(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 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 Details
-
JavaScriptException
Deprecated.UseWrappedException(Throwable)
to report exceptions in Java code. -
JavaScriptException
Create a JavaScript exception wrapping the given JavaScript value- Parameters:
value
- the JavaScript value thrown.
-
-
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.