private QueryParserException convertParserException(ParseException pe) { if (pe.currentToken == null) { List<Token> preceeding = findPreceeding(parser.token, 1); if (!preceeding.isEmpty()) { pe.currentToken = preceeding.get(0); } else { pe.currentToken = parser.token; } } QueryParserException qpe = new QueryParserException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31100, getMessage(pe, 10))); qpe.setParseException(pe); return qpe; }
private QueryParserException convertParserException(ParseException pe) { if (pe.currentToken == null) { List<Token> preceeding = findPreceeding(parser.token, 1); if (!preceeding.isEmpty()) { pe.currentToken = preceeding.get(0); } else { pe.currentToken = parser.token; } } QueryParserException qpe = new QueryParserException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31100, getMessage(pe, 10))); qpe.setParseException(pe); return qpe; }
private QueryParserException convertParserException(ParseException pe) { if (pe.currentToken == null) { List<Token> preceeding = findPreceeding(parser.token, 1); if (!preceeding.isEmpty()) { pe.currentToken = preceeding.get(0); } else { pe.currentToken = parser.token; } } QueryParserException qpe = new QueryParserException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31100, getMessage(pe, 10))); qpe.setParseException(pe); return qpe; }