On Wed, Jan 20, 2021 at 1:34 PM Mark Derricutt <[email protected]> wrote: > > Could that switch from IOException to UncheckedIOException rather than > directly moving to RuntimeException? > > https://docs.oracle.com/javase/8/docs/api/java/io/UncheckedIOException.html
I did consider that, but as per JSTEP-4 page: "An alternative would be for it to extend UncheckedIOException (an existing JDK type): problem is that one can only be created if there is an actual IOException to wrap -- and this would only be true for streaming read/write methods, but not for exceptions Jackson itself throws." so that at least for exceptions Jackson itself throws this would be cumbersome as an `IOException` must be available for wrapping. So actual decode/parse exceptions would always be wrapped if so (or use bogus thing to wrap). For IOExceptions from below it would be possible, but at this point I prefer just having "WrappedIOException" that extends JacksonException; this way everything that Jackson constructs or wraps will be of type JacksonException. -+ Tatu +- > > > > > From: Tatu Saloranta <[email protected]> > Reply: [email protected] <[email protected]> > Date: 19 January 2021 at 6:18:42 PM > To: [email protected] <[email protected]> > Subject: [jackson-dev] Major refactoring for Jackson 3.0: JSTEP-4, make > Jackson exceptions unchecked (don't extend IOException) > > 2. In 3.0 change `JacksonException` to extend `RuntimeException` instead > > -- > You received this message because you are subscribed to the Google Groups > "jackson-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jackson-dev/CALYGm1y2N480q853TX809mej93hcMSkyd7hWMXcGfrqmfSPG-A%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-dev/CAL4a10ixhRNDAy54eZX2R%3Dk7oZv1qw_Wd6xiccrXgcdpL1uf%3Dg%40mail.gmail.com.
