You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by sh...@apache.org on 2009/02/24 07:07:37 UTC
svn commit: r747284 -
/lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java
Author: shalin
Date: Tue Feb 24 06:07:37 2009
New Revision: 747284
URL: http://svn.apache.org/viewvc?rev=747284&view=rev
Log:
SOLR-1035 -- Catch RuntimeException instead of NumberFormatException
Modified:
lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java
Modified: lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java?rev=747284&r1=747283&r2=747284&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/schema/FieldType.java Tue Feb 24 06:07:37 2009
@@ -184,7 +184,7 @@
String val;
try {
val = toInternal(externalVal);
- } catch (NumberFormatException e) {
+ } catch (RuntimeException e) {
throw new SolrException( SolrException.ErrorCode.SERVER_ERROR, "Error while creating field '" + field + "' from value '" + externalVal + "'", e, false);
}
if (val==null) return null;