The exception hierarchy, the checked/unchecked design intent and why it's controversial, execution order through try-catch-finally (including the surprising cases), suppressed exceptions, exception chaining, and how to design custom exceptions that don't make future engineers cry.
// Lessons
- 01soon
The Exception Hierarchy — Throwable, Error, Exception, RuntimeException
- 02soon
Checked vs Unchecked — The Original Design Intent and the Controversy
- 03soon
try-catch-finally — The Execution Order (Including the Surprising Cases)
- 04soon
try-with-resources — How the Compiler Desugars It
- 05soon
Suppressed Exceptions — When Two Exceptions Happen at Once
- 06soon
Exception Chaining — initCause(), getCause() and the Stack Trace
- 07soon
Custom Exception Design — What to Extend, When to Add Fields