FieldType#toInternal format error approach?

2009-11-22 Thread Mattmann, Chris A (388J)
Hey Guys, I'm working on SOLR-1586, and looking at FieldType#toInternal, it just dawned on me -- how should errors be thrown if a provided value for e.g., a GeoPointField is not acceptable? As an example, I'm checking lats and lons for valid ranges (-90 to 90, and -180 to 180, respectively), but

Re: FieldType#toInternal format error approach?

2009-11-22 Thread Grant Ingersoll
Looking at the code that is one consumer of this, FieldType.createField, it seems like it is a usually handled through a RuntimeException. On Nov 22, 2009, at 1:47 PM, Mattmann, Chris A (388J) wrote: Hey Guys, I'm working on SOLR-1586, and looking at FieldType#toInternal, it just dawned on