exceptions: relabel the last E02 section
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4HkWoC7hLzk61vZa8
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
tools.jackson.core.exc.JacksonIOException
|
||||
cause: java.io.IOException
|
||||
Connection reset
|
||||
== not a JacksonException ==
|
||||
== calls that do not parse text ==
|
||||
-- null String
|
||||
java.lang.IllegalArgumentException
|
||||
argument "content" is null
|
||||
|
||||
@@ -72,7 +72,7 @@ public class E02Triggers {
|
||||
@Override public int read() throws IOException { throw new IOException("Connection reset"); }
|
||||
}, Order.class));
|
||||
|
||||
System.out.println("== not a JacksonException ==");
|
||||
System.out.println("== calls that do not parse text ==");
|
||||
show("null String", () -> MAPPER.readValue((String) null, Order.class));
|
||||
show("convertValue with bad data", () -> MAPPER.convertValue(Map.of("id", "abc"), Order.class));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user