This exception should be thrown if something wrong happens when dealing with {@link QueryNode}s.
It also supports NLS messages.
6465666768697071727374
try { bQuery.add(query, getModifierValue(child)); } catch (TooManyClauses ex) { throw new QueryNodeException(new MessageImpl( QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, new Object[]{BooleanQuery .getMaxClauseCount(), queryNode .toQueryString(new EscapeQuerySyntaxImpl())}), ex); }
6566676869707172737475
5253545556575859606162
try { bQuery.add(query, BooleanClause.Occur.SHOULD); } catch (TooManyClauses ex) { throw new QueryNodeException(new MessageImpl( /* * IQQQ.Q0028E_TOO_MANY_BOOLEAN_CLAUSES, * BooleanQuery.getMaxClauseCount() */QueryParserMessages.EMPTY_MESSAGE), ex);
7172737475767778798081
return node; switch (wildcardNode.getText().charAt(0)) { case '*': case '?': throw new QueryNodeException(new MessageImpl( QueryParserMessages.LEADING_WILDCARD_NOT_ALLOWED, new Object[]{node .toQueryString(new EscapeQuerySyntaxImpl())})); } }
5152535455565758596061
@Override protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { if (!((node instanceof BooleanQueryNode && !(node instanceof AndQueryNode)) || node .getClass() == FieldQueryNode.class)) { throw new QueryNodeException(new MessageImpl( QueryParserMessages.NODE_ACTION_NOT_SUPPORTED)); } return node;
203204205206207208209210211212213
protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException { if (node instanceof WildcardQueryNode || node instanceof FuzzyQueryNode) { throw new QueryNodeException(new MessageImpl( QueryParserMessages.EMPTY_MESSAGE)); } return node;
192193194195196197198199200201202
183184185186187188189190191192193
170171172173174175176177178179180
171172173174175176177178179180181