|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.mozilla.javascript.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(org.mozilla.javascript.NativeError nativeError,
java.lang.String sourceName,
int lineNumber,
int columnNumber,
java.lang.String lineSource)
Create an exception with the specified detail message. |
Method Summary | |
int |
getColumnNumber()
The column number of the location of the error, or zero if unknown. |
Scriptable |
getErrorObject()
Get the error object corresponding to this exception. |
int |
getLineNumber()
Returns the line number of the statement causing the error, or zero if not available. |
java.lang.String |
getLineSource()
The source of the line causing the error, or zero if unknown. |
java.lang.String |
getMessage()
Gets the message corresponding to the error. |
java.lang.String |
getName()
Gets the name of the error. |
java.lang.String |
getSourceName()
Get the name of the source containing the error, or null if that information is not available. |
java.lang.String |
toString()
Return a string representation of the error, which currently consists of the name of the error together with the message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EcmaError(org.mozilla.javascript.NativeError nativeError, java.lang.String sourceName, int lineNumber, int columnNumber, java.lang.String lineSource)
nativeError
- the NativeError object constructed for this errorsourceName
- the name of the source reponsible for the errorlineNumber
- the line number of the sourcecolumnNumber
- the columnNumber of the source (may be zero if
unknown)lineSource
- the source of the line containing the error (may be
null if unknown)Method Detail |
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getName()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSourceName()
public int getLineNumber()
public Scriptable getErrorObject()
public int getColumnNumber()
public java.lang.String getLineSource()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |