com.google.javascript.rhino
Class EcmaError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.javascript.rhino.RhinoException
                  extended by com.google.javascript.rhino.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

Method Summary
 String details()
           
 int getColumnNumber()
          Deprecated. Use RhinoException.columnNumber() from the super class.
 String getErrorMessage()
          Gets the message corresponding to the error.
 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.
 
Methods inherited from class com.google.javascript.rhino.RhinoException
columnNumber, getMessage, getScriptStackTrace, getScriptStackTrace, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, sourceName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

details

public String details()
Overrides:
details in class RhinoException

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 implemenation-defined string describing the error.

getSourceName

@Deprecated
public String getSourceName()
Deprecated. Use RhinoException.sourceName() from the super class.


getLineNumber

@Deprecated
public int getLineNumber()
Deprecated. Use RhinoException.lineNumber() from the super class.


getColumnNumber

@Deprecated
public int getColumnNumber()
Deprecated. Use RhinoException.columnNumber() from the super class.


getLineSource

@Deprecated
public String getLineSource()
Deprecated. Use RhinoException.lineSource() from the super class.