(no title)
branko_d | 3 months ago
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.
frumplestlatz|3 months ago
It also makes errors part of the API contract, which is where they belong, because they are.
branko_d|3 months ago
The point about being explicitly part of the API stands, though.