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:
Claude
2026-12-03 23:41:56 +05:30
parent 26f64bc184
commit f97ec4e014
71 changed files with 2210 additions and 0 deletions
@@ -0,0 +1,22 @@
class : InvalidFormatException
getOriginalMessage : Cannot deserialize value of type `int` from String "card=4111111111111111": not a valid `int` value
getLocation : line 4, column 35, char offset 98
getPathReference : com.ankurm.exceptions.Order["lines"]->java.util.ArrayList[1]->com.ankurm.exceptions.Order$Line["qty"]
field path : lines[1].qty
getValue : card=4111111111111111
getTargetType : int
getMessage():
Cannot deserialize value of type `int` from String "card=4111111111111111": not a valid `int` value
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); byte offset: #UNKNOWN] (through reference chain: com.ankurm.exceptions.Order["lines"]->java.util.ArrayList[1]->com.ankurm.exceptions.Order$Line["qty"])
== the same input with StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION enabled ==
(String)"{"id": 7,
"quantity": 2,
"lines": [ {"sku": "A-1", "qty": 1},
{"sku": "B-2", "qty": "card=4111111111111111"} ]}"
== where the position shows up: same broken text, three ways ==
Jackson 2, String input : line: 1, column: 23
Jackson 3, String input : byte offset: #UNKNOWN but getLineNr()=1, getColumnNr()=23
Jackson 3, byte[] input : byte offset: #22 getLineNr()=1, getColumnNr()=23