org.mozilla.javascript
public interface ErrorReporter
Method Summary | |
---|---|
void | error(String message, String sourceName, int line, String lineSource, int lineOffset)
Report an error.
|
EvaluatorException | runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
Creates an EvaluatorException that may be thrown.
runtimeErrors, unlike errors, will always terminate the
current script.
|
void | warning(String message, String sourceName, int line, String lineSource, int lineOffset)
Report a warning.
|
Parameters: message a String describing the error sourceName a String describing the JavaScript source where the error occured; typically a filename or URL line the line number associated with the error lineSource the text of the line (may be null) lineOffset the offset into lineSource where problem was detected
Parameters: message a String describing the error sourceName a String describing the JavaScript source where the error occured; typically a filename or URL line the line number associated with the error lineSource the text of the line (may be null) lineOffset the offset into lineSource where problem was detected
Returns: an EvaluatorException that will be thrown.
Parameters: message a String describing the warning sourceName a String describing the JavaScript source where the warning occured; typically a filename or URL line the line number associated with the warning lineSource the text of the line (may be null) lineOffset the offset into lineSource where problem was detected