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 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 I don't see > a way to notify that there's an input error. I can think of a way to do this > (right now I'm just using a Logger to LOG.warn), but is there a better, more > SOLR-standard way of doing this? > > Cheers, > Chris