Examples of RuleActionException


Examples of com.antlersoft.parser.RuleActionException

      {
        next_token.value = CharClass.convertEscapes(next_token.value);
      }
      catch ( LexException le)
      {
        throw new RuleActionException( "Bad character literal: "+le.getMessage(), le);
      }
      parse(ConstExprParser.cep_number,
          new Integer( ( (CharacterLiteral) next_token).intValue()));
    }
    else if ( next_token.symbol==PreprocessParser.lex_identifier)
      parse( ConstExprParser.cep_number, next_token.value.equals( "true") ? ONE : ZERO);
    else if ( next_token instanceof NumericLiteral)
      try {
        parse(ConstExprParser.cep_number,
            new Integer( ( (NumericLiteral) next_token).intValue()));
      }
      catch (LexException le) {
        throw new RuleActionException("Bad numeric literal: " +
                        le.getMessage(), le);
      }
    else if ( next_token instanceof AltSymbolToken)
    {
      AltSymbolToken token=(AltSymbolToken)next_token;
View Full Code Here

Examples of com.antlersoft.parser.RuleActionException

      m_result_list.remove(0);
      FileReadRunnable r;
      try {
        r = future.get();
      } catch (InterruptedException e) {
        throw new RuleActionException("Interrupted waiting for analyzer thread", e);
      } catch (ExecutionException e) {
        throw new RuleActionException("Uncaught error in analyzer thread", e);
      }
      if (r.captureIOException != null)
        throw r.captureIOException;
      if (r.captureRuleActionException != null)
        throw r.captureRuleActionException;
View Full Code Here

Examples of com.antlersoft.parser.RuleActionException

      state.endOfFile();
      logger.fine( "lines read: "+m_line_count);
    }
    catch ( LexException le)
    {
      RuleActionException rae=new RuleActionException( "error: "+le.getMessage()+" at line: "+m_line_count+"\n"+m_line.toString(), le);
      rae.setStackTrace(le.getStackTrace());
      throw rae;     
    }
    catch ( RuleActionException e)
    {
      RuleActionException rae=new RuleActionException( "error: "+e.getMessage()+" at line: "+m_line_count+"\n"+m_line.toString(),e);
      rae.setStackTrace(e.getStackTrace());
      throw rae;
    }   
  }
View Full Code Here

Examples of com.antlersoft.parser.RuleActionException

      String message=m_parser.getRuleMessage();
      if ( message==null)
      {
        message="Parsing error parsing "+symbol.toString()+": '"+value.toString()+"'";
      }
      throw new RuleActionException(message);
    }
  }
View Full Code Here

Examples of com.antlersoft.parser.RuleActionException

          String message=m_parser.getRuleMessage();
          if ( message==null)
          {
            message="Lexer parsing error parsing "+t.symbol.toString()+": '"+t.value.toString()+"'";
          }
          throw new RuleActionException(message);
        }
      }
    };
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.