Initializes a new instance of {@link DiagnosticErrorListener}, specifying whether all ambiguities or only exact ambiguities are reported.
@param exactOnly {@code true} to report only exact ambiguities, otherwise {@code false} to report all ambiguities.
See Implementation
Initializes a new instance of {@link DiagnosticErrorListener}, specifying whether all ambiguities or only exact ambiguities are reported.
@param exactOnly {@code true} to report only exact ambiguities, otherwise {@code false} to report all ambiguities.