Skip to content

Split CsvMappingException into CsvReadException/CsvWriteException #240

Closed
@cowtowncoder

Description

@cowtowncoder

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:

  1. For Jackson 2.13, create 2 new exceptions, make them extend existing CsvMappingException (without rebasing, to keep compatibility)
  2. For Jackson 3.0, remove CsvMappingException and make 2 new exceptions extend streaming-level counterparts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions