Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
RuntimeException
org.mozilla.javascript.RhinoException
org.mozilla.javascript.EcmaError
public class EcmaError
extends RhinoException
Constructor Summary | |
|
Method Summary | |
@Override | |
int |
|
String |
|
Scriptable |
|
int |
|
String |
|
String |
|
String |
|
Methods inherited from class org.mozilla.javascript.RhinoException | |
String getMessage , columnNumber , details , getScriptStackTrace , getScriptStackTrace , initColumnNumber , initLineNumber , initLineSource , initSourceName , lineNumber , lineSource , sourceName , void printStackTrace , void printStackTrace |
public 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.
public @Override String details()
public int getColumnNumber()
Deprecated. Use
RhinoException.columnNumber()
from the super class.
public String getErrorMessage()
Gets the message corresponding to the error. See ECMA edition 3, 15.11.7.10.
- Returns:
- an implementation-defined string describing the error.
public int getLineNumber()
Deprecated. Use
RhinoException.lineNumber()
from the super class.
public String getLineSource()
Deprecated. Use
RhinoException.lineSource()
from the super class.
public String getName()
Gets the name of the error. 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.
- Returns:
- the name of the error.
public String getSourceName()
Deprecated. Use
RhinoException.sourceName()
from the super class.