mirror of https://github.com/apache/lucene.git
SOLR-5905: Changed IllegalStateException to a SolrException
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1581236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9814a4a89
commit
4afe792b33
|
@ -42,6 +42,7 @@ import org.apache.lucene.search.Scorer;
|
|||
import org.apache.lucene.util.Bits;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.FixedBitSet;
|
||||
import org.apache.solr.common.SolrException;
|
||||
import org.apache.solr.common.params.ModifiableSolrParams;
|
||||
import org.apache.solr.common.params.SolrParams;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
|
@ -212,7 +213,7 @@ public class CollapsingQParserPlugin extends QParserPlugin {
|
|||
public CollapsingPostFilter(SolrParams localParams, SolrParams params, SolrQueryRequest request) throws IOException {
|
||||
this.field = localParams.get("field");
|
||||
if (this.field == null) {
|
||||
throw new IllegalStateException("Required 'field' param is missing.");
|
||||
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Required 'field' param is missing.");
|
||||
}
|
||||
this.max = localParams.get("max");
|
||||
this.min = localParams.get("min");
|
||||
|
|
Loading…
Reference in New Issue