exceptions: Java exception handling companion code (suppression, chaining, cost)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
2026-09-30 18:45:53 +00:00
co-authored by Claude Sonnet 5.5
parent 4a74153d87
commit bfa7f97432
32 changed files with 688 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import java.io.IOException;
import java.util.stream.Stream;
// Deliberately does NOT compile. scripts/run-all.sh captures the real javac message.
public class LambdaChecked {
static String read(String n) throws IOException { return n; }
public static void main(String[] args) {
Stream.of("a", "b").map(n -> read(n)).forEach(System.out::println);
}
}