thepointman.dev_

Courses / Java Language

Java Exceptions

beginner7 lessons

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

  1. 01

    The Exception Hierarchy — Throwable, Error, Exception, RuntimeException

    soon
  2. 02

    Checked vs Unchecked — The Original Design Intent and the Controversy

    soon
  3. 03

    try-catch-finally — The Execution Order (Including the Surprising Cases)

    soon
  4. 04

    try-with-resources — How the Compiler Desugars It

    soon
  5. 05

    Suppressed Exceptions — When Two Exceptions Happen at Once

    soon
  6. 06

    Exception Chaining — initCause(), getCause() and the Stack Trace

    soon
  7. 07

    Custom Exception Design — What to Extend, When to Add Fields

    soon