public class SimpleErrorReporter extends Object implements ErrorReporter
ErrorReporter
that collects warnings and errors and makes
them accessible via errors
and warnings
.Constructor and Description |
---|
SimpleErrorReporter() |
Modifier and Type | Method and Description |
---|---|
void |
error(String message,
String sourceName,
int line,
int lineOffset)
Report an error.
|
static String |
getMessage0(String messageId) |
static String |
getMessage1(String messageId,
Object arg1) |
void |
warning(String message,
String sourceName,
int line,
int lineOffset)
Report a warning.
|
public void warning(String message, String sourceName, int line, int lineOffset)
ErrorReporter
warning
in interface ErrorReporter
message
- 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(String message, String sourceName, int line, int lineOffset)
ErrorReporter
error
in interface ErrorReporter
message
- 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 detectedCopyright © 2009-2017 Google. All Rights Reserved.