Example usage for org.antlr.v4.runtime InputMismatchException InputMismatchException

List of usage examples for org.antlr.v4.runtime InputMismatchException InputMismatchException

Introduction

In this page you can find the example usage for org.antlr.v4.runtime InputMismatchException InputMismatchException.

Prototype

public InputMismatchException(Parser recognizer) 

Source Link

Usage

From source file:org.jarvis.main.parser.AimlParserImpl.java

License:Apache License

@Override
public void onOpenTag(String value) {
    try {//  www. j  a va 2s  .c o m
        onPrivateOpenTag(value);
    } catch (Exception e) {
        e.printStackTrace();
        this.getErrorHandler().reportError(this, new InputMismatchException(this));
    }
}

From source file:org.jarvis.main.parser.AimlParserImpl.java

License:Apache License

@Override
public void onCloseTag(String value) {
    try {/*from ww w.  ja v  a  2  s  .c o  m*/
        onPrivateCloseTag(value);
    } catch (Exception e) {
        e.printStackTrace();
        this.getErrorHandler().reportError(this, new InputMismatchException(this));
    }
}

From source file:org.tw.fluentdsl.FluentDslErrorStrategy.java

License:Open Source License

@Override
public Token recoverInline(Parser recognizer) throws RecognitionException {
    throw new RuntimeException(new InputMismatchException(recognizer));
}