DefaultErrorStrategy.reportError

{@inheritDoc}

<p>The default implementation returns immediately if the handler is already in error recovery mode. Otherwise, it calls {@link #beginErrorCondition} and dispatches the reporting task based on the runtime type of {@code e} according to the following table.</p>

<ul> <li>{@link NoViableAltException}: Dispatches the call to {@link #reportNoViableAlternative}</li> <li>{@link InputMismatchException}: Dispatches the call to {@link #reportInputMismatch}</li> <li>{@link FailedPredicateException}: Dispatches the call to {@link #reportFailedPredicate}</li> <li>All other types: calls {@link Parser#notifyErrorListeners} to report the exception</li> </ul>

class DefaultErrorStrategy
void
reportError

Meta