InputMismatchException constructor
InputMismatchException(
- Parser recognizer, [
- int state = -1,
- 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;
}