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
This commit is contained in:
Michael McCandless 2011-06-29 17:13:02 +00:00
parent 904e3f73bf
commit 2f50268803
1 changed files with 1 additions and 1 deletions

View File

@ -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,