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
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Lists the places a rename cannot judge. Every hit needs a human look.
# Usage: scripts/review-catches.sh <project-dir>
set -uo pipefail
cd "$1"
files=$(grep -rlE 'tools\.jackson|com\.fasterxml\.jackson\.(core|databind)|OrderCodec' --include='*.java' src | sort)
echo "-- catch/throws IOException in files that touch Jackson (or its wrappers)"
grep -nE 'catch *\([^)]*(IOException)|throws [^{;]*IOException' $files
echo "-- catch IllegalArgumentException (convertValue no longer wraps)"
grep -nE 'catch *\([^)]*IllegalArgumentException' $files
echo "-- generic catches that now also receive Jackson errors"
grep -nE 'catch *\((final )?(RuntimeException|Exception|Throwable) ' $files || echo "(none)"