From 2f50268803ceb13bf11ba32318234f75062c6cc4 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 29 Jun 2011 17:13:02 +0000 Subject: [PATCH] fix UOE exc in base Query.createWeight to include this.toString in its message git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1141167 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/search/Query.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/search/Query.java b/lucene/src/java/org/apache/lucene/search/Query.java index 714b62836a4..d4a8d4372b5 100644 --- a/lucene/src/java/org/apache/lucene/search/Query.java +++ b/lucene/src/java/org/apache/lucene/search/Query.java @@ -88,7 +88,7 @@ public abstract class Query implements Cloneable { * Only implemented by primitive queries, which re-write to themselves. */ public Weight createWeight(IndexSearcher searcher) throws IOException { - throw new UnsupportedOperationException(); + throw new UnsupportedOperationException("Query " + this + " does not implement createWeight"); } /** Expert: called to re-write queries into primitive queries. For example,