Class ErrorReporter
java.lang.Object
com.google.javascript.jscomp.parsing.parser.util.ErrorReporter
A conduit for reporting errors and warnings to the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanhadError()protected abstract voidreportError(SourcePosition location, String message) final voidreportError(SourcePosition location, String format, Object... arguments) protected abstract voidreportWarning(SourcePosition location, String message) final voidreportWarning(SourcePosition location, String format, Object... arguments)
-
Constructor Details
-
ErrorReporter
public ErrorReporter()
-
-
Method Details
-
reportError
@FormatMethod public final void reportError(SourcePosition location, @FormatString String format, Object... arguments) -
reportError
-
reportWarning
@FormatMethod public final void reportWarning(SourcePosition location, @FormatString String format, Object... arguments) -
reportWarning
-
hadError
public final boolean hadError()
-