SOLR-1035 -- Catch RuntimeException instead of NumberFormatException

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@747284 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-02-24 06:07:37 +00:00
parent 8beaf49ee5
commit ee6ad3d45c
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public abstract class FieldType extends FieldProperties {
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;