lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1026799 - /lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java
Date Sun, 24 Oct 2010 13:39:30 GMT
Author: markrmiller
Date: Sun Oct 24 13:39:30 2010
New Revision: 1026799

URL: http://svn.apache.org/viewvc?rev=1026799&view=rev
Log:
fix previous - added false to wrong SolrException (had no affect)

Modified:
    lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java?rev=1026799&r1=1026798&r2=1026799&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java Sun Oct 24 13:39:30
2010
@@ -419,7 +419,7 @@ public final class SolrCore implements S
     try {
         clazz = getResourceLoader().findClass(className);
         if (cast != null && !cast.isAssignableFrom(clazz)) {
-          throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Error Instantiating
"+msg+", "+className+ " is not a " +cast.getName(), false);
+          throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Error Instantiating
"+msg+", "+className+ " is not a " +cast.getName());
         }
       //most of the classes do not have constructors which takes SolrCore argument. It is
recommended to obtain SolrCore by implementing SolrCoreAware.
       // So invariably always it will cause a  NoSuchMethodException. So iterate though the
list of available constructors
@@ -434,7 +434,7 @@ public final class SolrCore implements S
     } catch (SolrException e) {
       throw e;
     } catch (Exception e) {
-      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Error Instantiating "+msg+",
"+className+ " failed to instantiate " +cast.getName(), e);
+      throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Error Instantiating "+msg+",
"+className+ " failed to instantiate " +cast.getName(), e, false);
     }
   }
 



Mime
View raw message