| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.mozilla.javascript.RhinoException org.mozilla.javascript.EcmaError
EcmaError | public class EcmaError extends RhinoException (Code) | | The class of exceptions raised by the engine as described in
ECMA edition 3. See section 15.11.6 in particular.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
EcmaError | EcmaError(String errorName, String errorMessage, String sourceName, int lineNumber, String lineSource, int columnNumber)(Code) | | Create an exception with the specified detail message.
Errors internal to the JavaScript engine will simply throw a
RuntimeException.
Parameters: sourceName - the name of the source reponsible for the error Parameters: lineNumber - the line number of the source Parameters: columnNumber - the columnNumber of the source (may be zero ifunknown) Parameters: lineSource - the source of the line containing the error (may benull if unknown) |
getErrorMessage | public String getErrorMessage()(Code) | | Gets the message corresponding to the error.
See ECMA edition 3, 15.11.7.10.
an implemenation-defined string describing the error. |
getName | public String getName()(Code) | | 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.
the name of the error. |
|
|