3 ms·
The great thing about exceptions is that they implement both of these behaviors with a single mechanism. For recoverable errors, you catch. For unrecoverable
by munificent 7y ago
The great thing about exceptions is that they implement both of these behaviors with a single mechanism.
For recoverable errors, you catch.
For unrecoverable ones, you don't. The exception throwing mechanism unwinds the entire stack and crashes the app with a helpful stack trace.
- baby 7y agoTrue!