Package org.mozilla.javascript
Class EcmaError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.mozilla.javascript.RhinoException
-
- org.mozilla.javascript.EcmaError
-
- All Implemented Interfaces:
Serializable
public class EcmaError extends RhinoException
The class of exceptions raised by the engine as described in ECMA edition 3. See section 15.11.6 in particular.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringdetails()intgetColumnNumber()Deprecated.UseRhinoException.columnNumber()from the super class.StringgetErrorMessage()Gets the message corresponding to the error.ScriptablegetErrorObject()Deprecated.Always returns null.intgetLineNumber()Deprecated.UseRhinoException.lineNumber()from the super class.StringgetLineSource()Deprecated.UseRhinoException.lineSource()from the super class.StringgetName()Gets the name of the error.StringgetSourceName()Deprecated.UseRhinoException.sourceName()from the super class.-
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 Detail
-
EcmaError
@Deprecated 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.
-
-
Method Detail
-
details
public String details()
- Overrides:
detailsin classRhinoException
-
getName
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.
-
getErrorMessage
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.
-
getSourceName
@Deprecated public String getSourceName()
Deprecated.UseRhinoException.sourceName()from the super class.
-
getLineNumber
@Deprecated public int getLineNumber()
Deprecated.UseRhinoException.lineNumber()from the super class.
-
getColumnNumber
@Deprecated public int getColumnNumber()
Deprecated.UseRhinoException.columnNumber()from the super class.
-
getLineSource
@Deprecated public String getLineSource()
Deprecated.UseRhinoException.lineSource()from the super class.
-
getErrorObject
@Deprecated public Scriptable getErrorObject()
Deprecated.Always returns null.
-
-