mirror of https://github.com/apache/lucene.git
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:
parent
8beaf49ee5
commit
ee6ad3d45c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue