Package org.htmlunit.corejs.javascript
Class JavaScriptException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.htmlunit.corejs.javascript.RhinoException
-
- org.htmlunit.corejs.javascript.JavaScriptException
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
details
private static long
serialVersionUID
private java.lang.Object
value
-
Fields inherited from class org.htmlunit.corejs.javascript.RhinoException
interpreterLineData, interpreterStackInfo
-
-
Constructor Summary
Constructors Constructor Description JavaScriptException(java.lang.Object value)
Deprecated.UseWrappedException(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
details()
java.lang.String
getDetails()
int
getLineNumber()
Deprecated.UseRhinoException.lineNumber()
from the super class.java.lang.String
getSourceName()
Deprecated.UseRhinoException.sourceName()
from the super class.java.lang.Object
getValue()
-
Methods inherited from class org.htmlunit.corejs.javascript.RhinoException
columnNumber, formatStackTrace, getMessage, getScriptStack, getScriptStack, getScriptStackTrace, getScriptStackTrace, getScriptStackTrace, getStackStyle, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, recordErrorOrigin, setStackStyle, sourceName, useMozillaStackStyle, usesMozillaStackStyle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
value
private java.lang.Object value
-
details
private java.lang.String details
-
-
Constructor Detail
-
JavaScriptException
@Deprecated public JavaScriptException(java.lang.Object value)
Deprecated.UseWrappedException(Throwable)
to report exceptions in Java code.
-
JavaScriptException
public JavaScriptException(java.lang.Object value, java.lang.String sourceName, int lineNumber)
Create a JavaScript exception wrapping the given JavaScript value- Parameters:
value
- the JavaScript value thrown.
-
-
Method Detail
-
details
public java.lang.String details()
- Overrides:
details
in classRhinoException
-
getDetails
public java.lang.String getDetails()
-
getValue
public java.lang.Object getValue()
- Returns:
- the value wrapped by this exception
-
getSourceName
@Deprecated public java.lang.String getSourceName()
Deprecated.UseRhinoException.sourceName()
from the super class.
-
getLineNumber
@Deprecated public int getLineNumber()
Deprecated.UseRhinoException.lineNumber()
from the super class.
-
-