Package org.jostraca.comp.antlr

Examples of org.jostraca.comp.antlr.RecognitionException


    }
    catch( StandardException se ) {
      throw se;
    }
    catch( TokenStreamRecognitionException tsre ) {
      RecognitionException re = tsre.recog;
      if( null != re ) {
        int    lineNumber = re.getLine();
        String line       = TextUtil.getLine( currentContent, lineNumber-1 );
        if( Standard.EMPTY == line ) {
          throw new TemplateParserException( TemplateParserException.CODE_syntax_error, re.getMessage() );
        }
        else {
          throw new TemplateParserException( TemplateParserException.CODE_syntax_error, line );
        }
      }
View Full Code Here


    }
    catch( StandardException se ) {
      throw se;
    }
    catch( TokenStreamRecognitionException tsre ) {
      RecognitionException re = tsre.recog;
      if( null != re ) {
        int    lineNumber = re.getLine();
        String line       = TextUtil.getLine( currentContent, lineNumber-1 );
        if( Standard.EMPTY == line ) {
          throw new TemplateParserException( TemplateParserException.CODE_syntax_error, re.getMessage() );
        }
        else {
          throw new TemplateParserException( TemplateParserException.CODE_syntax_error, line );
        }
      }
View Full Code Here

TOP

Related Classes of org.jostraca.comp.antlr.RecognitionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.