|
|
|
|
|
by branko_d
206 days ago
|
|
Sure, but the same is true of any error handling strategy. When you work with exceptions, the key is to assume that every line can throw unless proven otherwise, which in practice means almost all lines of code can throw. Once you adopt that mental model, things get easier. |
|
It also makes errors part of the API contract, which is where they belong, because they are.