Issue 16100

Improve error logging in occurrence interpretation

16100
Reporter: trobertson
Type: Feedback
Summary: Improve error logging in occurrence interpretation
Priority: Major
Status: Open
Created: 2014-07-10 12:59:20.897
Updated: 2016-02-15 13:45:36.75
        
Description: The error logging can be seen on
https://github.com/gbif/occurrence/blob/master/occurrence-processor/src/main/java/org/gbif/occurrence/processor/interpreting/VerbatimOccurrenceInterpreter.java#L80

This could be cleaned:
- they are not RuntimeExceptions but log saying "Caught a runtime exception.." (note: RuntimeException is inadequate to catch so behavior is ok)
- they should probably catch Throwable to also handle anything that might raise Error
- they should log something more meaningful such as "Unable to interpret a date.  One or more dates may have been interpreted before the error.  Continuing, but record in invalid state"
]]>