4 ms·
an error should be handled in precisely one way - logged (and control flow continues) - returned (and control flow returns) - managed (and control flow (prob
by preseinger 3y ago
an error should be handled in precisely one way
- logged (and control flow continues)
- returned (and control flow returns)
- managed (and control flow (probably) continues)
if you log an error, then you should not return it
if you return an error, then you should not log it
etc.