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 boolean
hadError()
protected abstract void
reportError
(SourcePosition location, String message) final void
reportError
(SourcePosition location, String format, Object... arguments) protected abstract void
reportWarning
(SourcePosition location, String message) final void
reportWarning
(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()
-