Inheritance: RecognitionException
        /// <summary>
        /// This is called by
        /// <see cref="ReportError(Parser, RecognitionException)"/>
        /// when the exception is a
        /// <see cref="FailedPredicateException"/>
        /// .
        /// </summary>
        /// <seealso cref="ReportError(Parser, RecognitionException)"/>
        /// <param name="recognizer">the parser instance</param>
        /// <param name="e">the recognition exception</param>
        protected internal virtual void ReportFailedPredicate(Parser recognizer, FailedPredicateException e)
        {
            string ruleName = recognizer.RuleNames[recognizer.RuleContext.RuleIndex];
            string msg      = "rule " + ruleName + " " + e.Message;

            NotifyErrorListeners(recognizer, msg, e);
        }
 /// <summary>
 /// This is called by
 /// <see cref="ReportError(Parser, RecognitionException)"/>
 /// when the exception is a
 /// <see cref="FailedPredicateException"/>
 /// .
 /// </summary>
 /// <seealso cref="ReportError(Parser, RecognitionException)"/>
 /// <param name="recognizer">the parser instance</param>
 /// <param name="e">the recognition exception</param>
 protected internal virtual void ReportFailedPredicate(Parser recognizer, FailedPredicateException e)
 {
     string ruleName = recognizer.RuleNames[recognizer._ctx.RuleIndex];
     string msg = "rule " + ruleName + " " + e.Message;
     NotifyErrorListeners(recognizer, msg, e);
 }