Throw It or Catch It: Fundamentals and the Detailed Mechanics of Java Exceptions
summary
Covers Java exception handling fundamentals and detailed mechanics, including whether and how to catch, log, and wrap exceptions and special cases like InterruptedException and logger failures during logging. Discusses libraries such as jdoctor and SneakyThrows, JIT optimizations for certain error paths, and practical implications for when to use or avoid exceptions.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:16Speaker setup
- 4:29Exception mechanics
- 9:04Exception performance
- 13:03Checked vs unchecked
- 15:12Exceptions not to catch
- 20:16OutOfMemoryError handling
- 25:13StackOverflowError deep dive
- 35:10Deadlocks and locks
- 37:41Thread interruption
- 42:21Uncatchable exceptions
- 46:17Stack trace performance
- 47:22Error message best practices
- 53:22Error message libraries
- 55:52Layered app exceptions
- 59:23Q&A
