org.mozilla.javascript

Class EvaluatorException

Known Direct Subclasses:
WrappedException

public class EvaluatorException
extends RhinoException

The class of exceptions thrown by the JavaScript engine.

Constructor Summary

EvaluatorException(String detail)
EvaluatorException(String detail, String sourceName, int lineNumber)
Create an exception with the specified detail message.
EvaluatorException(String detail, String sourceName, int lineNumber, String lineSource, int columnNumber)
Create an exception with the specified detail message.

Method Summary

int
getColumnNumber()
Deprecated. Use RhinoException.columnNumber() from the super class.
int
getLineNumber()
Deprecated. Use RhinoException.lineNumber() from the super class.
String
getLineSource()
Deprecated. Use RhinoException.lineSource() from the super class.
String
getSourceName()
Deprecated. Use RhinoException.sourceName() from the super class.

Methods inherited from class org.mozilla.javascript.RhinoException

columnNumber, details, getMessage, initColumnNumber, initLineNumber, initLineSource, initSourceName, lineNumber, lineSource, printStackTrace, printStackTrace, sourceName

Constructor Details

EvaluatorException

public EvaluatorException(String detail)

EvaluatorException

public EvaluatorException(String detail,
                          String sourceName,
                          int lineNumber)
Create an exception with the specified detail message. Errors internal to the JavaScript engine will simply throw a RuntimeException.
Parameters:
detail - the error message
sourceName - the name of the source reponsible for the error
lineNumber - the line number of the source

EvaluatorException

public EvaluatorException(String detail,
                          String sourceName,
                          int lineNumber,
                          String lineSource,
                          int columnNumber)
Create an exception with the specified detail message. Errors internal to the JavaScript engine will simply throw a RuntimeException.
Parameters:
detail - the error message
sourceName - the name of the source reponsible for the error
lineNumber - the line number of the source
lineSource - the source of the line containing the error (may be null if unknown)
columnNumber - the columnNumber of the source (may be zero if unknown)

Method Details

getColumnNumber

public int getColumnNumber()

Deprecated. Use RhinoException.columnNumber() from the super class.


getLineNumber

public int getLineNumber()

Deprecated. Use RhinoException.lineNumber() from the super class.


getLineSource

public String getLineSource()

Deprecated. Use RhinoException.lineSource() from the super class.


getSourceName

public String getSourceName()

Deprecated. Use RhinoException.sourceName() from the super class.