RecognitionException<StreamType extends IntStream> constructor

RecognitionException<StreamType extends IntStream>(
  1. Recognizer<ATNSimulator>? recognizer,
  2. StreamType inputStream,
  3. RuleContext? ctx, [
  4. String message = '',
])

Implementation

RecognitionException(
  this.recognizer,
  this.inputStream,
  this.ctx, [
  String message = '',
]) : super(message) {
  if (recognizer != null) offendingState = recognizer!.state;
}