-
-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
With the move to RuntimeException's as a baseline in Jackson-3, there are some unnecessary throws IOException declarations in the method signatures of readValue and writeValue methods int he IonObjectMapper class. Could these throws declarations be removed?
There is one method - writeValueAsIonValue which technically does have an uncaught IOException, but given that it both opens and closes the writer to just in-memory objects, I don't see how an actual IOException would be anything other than an illegal state. I am not sure if there is a conventional way to handle this, but it would be nice to see this caught and rethrown as a RuntimeException base as well (is there a good corresponding JacksonException that fits? JacksonIOException?)
cowtowncoder