public interface ErrorReporter
| Modifier and Type | Field and Description |
|---|---|
static ErrorReporter |
ALWAYS_THROWS_INSTANCE |
static ErrorReporter |
NULL_INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report an error.
|
void |
warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
Report a warning.
|
static final ErrorReporter NULL_INSTANCE
static final ErrorReporter ALWAYS_THROWS_INSTANCE
void warning(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
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 detectedvoid error(java.lang.String message,
java.lang.String sourceName,
int line,
int lineOffset)
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-2020 Google. All Rights Reserved.