|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.mozilla.javascript.RhinoException org.mozilla.javascript.EcmaError
public class EcmaError
The class of exceptions raised by the engine as described in ECMA edition 3. See section 15.11.6 in particular.
Constructor Summary | |
---|---|
EcmaError(Scriptable nativeError,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource)
Deprecated. EcmaError error instances should not be constructed explicitly since they are generated by the engine. |
Method Summary | |
---|---|
java.lang.String |
details()
|
int |
getColumnNumber()
Deprecated. Use RhinoException.columnNumber() from the super class. |
java.lang.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. |
java.lang.String |
getLineSource()
Deprecated. Use RhinoException.lineSource() from the super class. |
java.lang.String |
getName()
Gets the name of the error. |
java.lang.String |
getSourceName()
Deprecated. Use RhinoException.sourceName() from the super class. |
Methods inherited from class org.mozilla.javascript.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 |
Constructor Detail |
---|
public EcmaError(Scriptable nativeError, java.lang.String sourceName, int lineNumber, int columnNumber, java.lang.String lineSource)
Method Detail |
---|
public java.lang.String details()
details
in class RhinoException
public java.lang.String getName()
public java.lang.String getErrorMessage()
public java.lang.String getSourceName()
RhinoException.sourceName()
from the super class.
public int getLineNumber()
RhinoException.lineNumber()
from the super class.
public int getColumnNumber()
RhinoException.columnNumber()
from the super class.
public java.lang.String getLineSource()
RhinoException.lineSource()
from the super class.
public Scriptable getErrorObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |