exceptions: Jackson 3 unchecked JacksonException hierarchy, Spring Boot 4.2 error handling, OpenRewrite and sed migration
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
== who is at fault ==
|
||||
syntax error UnexpectedEndOfInputException BAD_INPUT
|
||||
wrong type InvalidFormatException BAD_INPUT
|
||||
too deep StreamConstraintsException BAD_INPUT
|
||||
no way to construct type InvalidDefinitionException OUR_BUG
|
||||
connection reset JacksonIOException TRANSPORT
|
||||
|
||||
== a catch that misses StreamConstraintsException ==
|
||||
slipped past catch (StreamReadException | DatabindException): StreamConstraintsException
|
||||
|
||||
== streams: no try/catch needed, one bad element ends the pipeline ==
|
||||
parsed 1
|
||||
pipeline aborted: UnexpectedEndOfInputException
|
||||
skip-and-report instead:
|
||||
parsed 1
|
||||
skipped {"id": (UnexpectedEndOfInputException)
|
||||
parsed 3
|
||||
|
||||
== CompletableFuture wraps it ==
|
||||
join() threw CompletionException, cause UnexpectedEndOfInputException
|
||||
exceptionally(): sees CompletionException wrapping UnexpectedEndOfInputException
|
||||
|
||||
== an old catch (RuntimeException) now swallows Jackson errors ==
|
||||
generic handler got UnexpectedEndOfInputException
|
||||
Reference in New Issue
Block a user