3 ms·
> Exceptions are flow control. ...for exceptional events. That means those events that are very far from the happy path and need to be recovered by unwinding
by rumanator 7y ago
> Exceptions are flow control.
...for exceptional events.
That means those events that are very far from the happy path and need to be recovered by unwinding down multiple function calls until a safe point to recover gracefully is reached. These are events such as failing to allocate memory.