You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/01/30 03:23:00 UTC
svn commit: r1440252 -
/manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
Author: kwright
Date: Wed Jan 30 02:22:59 2013
New Revision: 1440252
URL: http://svn.apache.org/viewvc?rev=1440252&view=rev
Log:
Don't throw ParseException anymore.
Modified:
manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
Modified: manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java
URL: http://svn.apache.org/viewvc/manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java?rev=1440252&r1=1440251&r2=1440252&view=diff
==============================================================================
--- manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java (original)
+++ manifoldcf/integration/solr-4.x/trunk/mcf/src/java/org/apache/solr/mcf/ManifoldCFQParserPlugin.java Wed Jan 30 02:22:59 2013
@@ -19,7 +19,6 @@ package org.apache.solr.mcf;
import org.apache.lucene.index.*;
import org.apache.lucene.search.*;
import org.apache.lucene.queries.*;
-import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.solr.search.QParserPlugin;
import org.apache.solr.search.QParser;
import org.apache.solr.common.params.CommonParams;
@@ -158,7 +157,7 @@ public class ManifoldCFQParserPlugin ext
/** Create and return the <code>Query</code> object represented by <code>qstr</code>
* @see #getQuery()
**/
- public Query parse() throws ParseException
+ public Query parse()
{
SolrParams params = req.getParams();
@@ -205,7 +204,7 @@ public class ManifoldCFQParserPlugin ext
catch (IOException e)
{
LOG.error("IO exception communicating with MCF authority service: "+e.getMessage(),e);
- throw new ParseException("IO exception communicating with MCF authority service: "+e.getMessage());
+ throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "IO exception communicating with MCF authority service: "+e.getMessage());
}
}