public class StrictErrorReporter extends Object implements org.mozilla.javascript.ErrorReporter
| Constructor and Description |
|---|
StrictErrorReporter(org.apache.commons.logging.Log log)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Log an error
|
org.mozilla.javascript.EvaluatorException |
runtimeError(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Log a runtime error
|
void |
warning(String message,
String sourceName,
int line,
String lineSource,
int lineOffset)
Log a warning
|
public StrictErrorReporter(org.apache.commons.logging.Log log)
log - The log to use when reporting errorspublic void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
warning in interface org.mozilla.javascript.ErrorReportermessage - The message to be displayed.sourceName - The name of the source fileline - The line numberlineSource - The source code that failedlineOffset - The line offsetpublic void error(String message, String sourceName, int line, String lineSource, int lineOffset)
error in interface org.mozilla.javascript.ErrorReportermessage - The message to be displayed.sourceName - The name of the source fileline - The line numberlineSource - The source code that failedlineOffset - The line offsetpublic org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
runtimeError in interface org.mozilla.javascript.ErrorReportermessage - The message to be displayed.sourceName - The name of the source fileline - The line numberlineSource - The source code that failedlineOffset - The line offsetCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.