public class SimpleErrorReporter extends java.lang.Object implements ErrorReporter
ErrorReporter that collects warnings and errors and makes
them accessible via errors and warnings.ALWAYS_THROWS_INSTANCE, NULL_INSTANCE| Constructor and Description |
|---|
SimpleErrorReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report an error.
|
static java.lang.String |
getMessage0(java.lang.String messageId) |
static java.lang.String |
getMessage1(java.lang.String messageId,
java.lang.Object arg1) |
void |
warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report a warning.
|
public void warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
ErrorReporterwarning in interface ErrorReportermessage - a String describing the warningsourceName - a String describing the JavaScript source
where the warning occurred; typically a filename or URLline - the line number associated with the warninglineOffset - the offset into lineSource where problem was detectedpublic void error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
ErrorReportererror in interface ErrorReportermessage - a String describing the errorsourceName - a String describing the JavaScript source
where the error occurred; typically a filename or URLline - the line number associated with the errorlineOffset - the offset into lineSource where problem was detectedpublic static java.lang.String getMessage0(java.lang.String messageId)
public static java.lang.String getMessage1(java.lang.String messageId,
java.lang.Object arg1)
Copyright © 2009-2020 Google. All Rights Reserved.