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:
Executable
+12
@@ -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)"
|
||||
Reference in New Issue
Block a user