3 ms·
It's really critical that you don't have to litter every single function call and conditional in your code with "if network error." There's plenty of "one in a
by gwbas1c 5y ago
It's really critical that you don't have to litter every single function call and conditional in your code with "if network error." There's plenty of "one in a million" corner cases beyond network errors that an industrial strength program needs to handle.
Exceptions let you put a single error handler higher up in the stack for the one in a million errors, like network errors.
- randomdata 5y agoIf a network error is a possible, there is no reason for it to not be a first class feature of your API. You can bolt it on to the side using goto by another name, but you shouldn’t.