InputMismatchException constructor

InputMismatchException(
  1. Parser recognizer, [
  2. int state = -1,
  3. ParserRuleContext? ctx
])

Implementation

InputMismatchException(
  Parser recognizer, [
  int state = -1,
  ParserRuleContext? ctx,
]) : super(recognizer, recognizer.inputStream, ctx ?? recognizer.context) {
  if (state != -1 && ctx != null) {
    offendingState = state;
  }
  offendingToken = recognizer.currentToken;
}