recover abstract method

void recover(
  1. Parser recognizer,
  2. RecognitionException<IntStream> e
)

This method is called to recover from exception e. This method is called after {@link #reportError} by the default exception handler generated for a rule method.

@see #reportError

@param recognizer the parser instance @param e the recognition exception to recover from @ if the error strategy could not recover from the recognition exception

Implementation

void recover(Parser recognizer, RecognitionException e);