Error Handling in Java
How exceptions work and how to design them, the mistakes to avoid, and the modern tools: Scoped Values, structured concurrency and the Result type.
2 of 2 parts published
-
Part 1 of 2
Java Exceptions: How They Work and How to Design Them
What the JVM does when an exception is thrown, checked against unchecked, the Throwable hierarchy, custom exceptions and translation, the seven deadly sins of exception handling, and a short manifesto.
5 min read
-
Part 2 of 2
Modern Java Error Handling: Scoped Values, Structured Concurrency and Result
Try-with-resources and multi-catch, Scoped Values for request context, structured concurrency with the Java 25 API, the Result type, CompletableFuture, and what exceptions cost.
4 min read