public class JavaScriptErrorReporter extends Object implements org.mozilla.javascript.ErrorReporter
Constructor and Description |
---|
JavaScriptErrorReporter(Log log,
String filename)
Error reporter constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
error(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Reports an error.
|
org.mozilla.javascript.EvaluatorException |
runtimeError(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Creates an EvaluatorException that may be thrown.
|
void |
warning(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Reports a warning.
|
public JavaScriptErrorReporter(Log log, String filename)
log
- Maven plugin logfilename
- JavaScript source file namepublic void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
warning
in interface org.mozilla.javascript.ErrorReporter
message
- a String describing the warningsourceName
- a String describing the JavaScript source where the warning occurred; typically a file name or
URLline
- the line number associated with the warninglineSource
- the text of the line (may be null)lineOffset
- the offset into lineSource where problem was detectedpublic void error(String message, String sourceName, int line, String lineSource, int lineOffset)
error
in interface org.mozilla.javascript.ErrorReporter
message
- a String describing the warningsourceName
- a String describing the JavaScript source where the warning occurred; typically a file name or
URLline
- the line number associated with the warninglineSource
- the text of the line (may be null)lineOffset
- the offset into lineSource where problem was detectedpublic org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
runtimeError
in interface org.mozilla.javascript.ErrorReporter
message
- a String describing the warningsourceName
- a String describing the JavaScript source where the warning occurred; typically a file name or
URLline
- the line number associated with the warninglineSource
- the text of the line (may be null)lineOffset
- the offset into lineSource where problem was detectedCopyright © 2009–2016 Samuel Santos. All rights reserved.