Card 10/ 10

RecapDifficulty: Advanced1 min

One Hierarchy, Three Decisions, One Thing Never to Do

Six things this topic established, and where each one was.

What the topic established, and which card it was on
The thingWhere
A throw skips every line between the failure and the handlerWhat Happens the Moment Something Goes Wrong
Error, checked Exception and RuntimeException are three branches of ThrowableChecked, Unchecked, and the Errors
Catch where you can act, declare where the caller has the context, wrap with the causeCatch It, Declare It, or Wrap It
A stack trace is captured at the new, top frame firstFollowing One Exception From the throw
finally runs on every way out, and must never returnWhy finally Runs Even After return
A resource in the try brackets closes itself, before any catchtry-with-resources

The one worth carrying: every decision in this topic is about who should deal with the failure. Catching narrowly, declaring upwards and wrapping with a cause are three answers to that question, and an empty catch is a refusal to answer it.