public class EcmaError extends RhinoException
| Constructor and Description |
|---|
EcmaError(Scriptable nativeError,
String sourceName,
int lineNumber,
int columnNumber,
String lineSource)
Deprecated.
EcmaError error instances should not be constructed explicitly since they are
generated by the engine.
|
| Modifier and Type | Method and Description |
|---|---|
String |
details() |
int |
getColumnNumber()
Deprecated.
Use
RhinoException.columnNumber() from the super class. |
String |
getErrorMessage()
Gets the message corresponding to the error.
|
Scriptable |
getErrorObject()
Deprecated.
Always returns null.
|
int |
getLineNumber()
Deprecated.
Use
RhinoException.lineNumber() from the super class. |
String |
getLineSource()
Deprecated.
Use
RhinoException.lineSource() from the super class. |
String |
getName()
Gets the name of the error.
|
String |
getSourceName()
Deprecated.
Use
RhinoException.sourceName() from the super class. |
columnNumber, getMessage, getScriptStack, getScriptStack, getScriptStackTrace, getScriptStackTrace, getScriptStackTrace, getStackStyle, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, setStackStyle, sourceName, useMozillaStackStyle, usesMozillaStackStyleaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString@Deprecated public EcmaError(Scriptable nativeError, String sourceName, int lineNumber, int columnNumber, String lineSource)
public String details()
details in class RhinoExceptionpublic String getName()
ECMA edition 3 defines the following errors: EvalError, RangeError, ReferenceError, SyntaxError, TypeError, and URIError. Additional error names may be added in the future.
See ECMA edition 3, 15.11.7.9.
public String getErrorMessage()
See ECMA edition 3, 15.11.7.10.
@Deprecated public String getSourceName()
RhinoException.sourceName() from the super class.@Deprecated public int getLineNumber()
RhinoException.lineNumber() from the super class.@Deprecated public int getColumnNumber()
RhinoException.columnNumber() from the super class.@Deprecated public String getLineSource()
RhinoException.lineSource() from the super class.@Deprecated public Scriptable getErrorObject()
Copyright © 2025 HtmlUnit. All rights reserved.