In Jackson 2.x there is CsvMappingException which extends JsonMappingException. This seems slightly sub-optimal as failures reported are streaming-level issues (mostly read but some write issues), and as such, exceptions used should instead extend:
StreamReadException (added in 2.10 to eventually replace JsonParseException)
StreamWriteException (added in 2.13 to eventually replace JsonGenerationException)
This can be done in two phases:
- For Jackson 2.13, create 2 new exceptions, make them extend existing
CsvMappingException (without rebasing, to keep compatibility)
- For Jackson 3.0, remove
CsvMappingException and make 2 new exceptions extend streaming-level counterparts.
In Jackson 2.x there is
CsvMappingExceptionwhich extendsJsonMappingException. This seems slightly sub-optimal as failures reported are streaming-level issues (mostly read but some write issues), and as such, exceptions used should instead extend:StreamReadException(added in 2.10 to eventually replaceJsonParseException)StreamWriteException(added in 2.13 to eventually replaceJsonGenerationException)This can be done in two phases:
CsvMappingException(without rebasing, to keep compatibility)CsvMappingExceptionand make 2 new exceptions extend streaming-level counterparts.