2 ms·
this issue is knowing whether you are catching the right errors
by metreo 6y ago
this issue is knowing whether you are catching the right errors
- simiones 6y agoYou have the same problem with error codes, don't you? The bigger difference is knowing whether you should expect errors at all - with exceptions, you can forget to handle an error and you may screw up an important assumption, like not unlocking a Mutex if an Exception is raised. With error codes, you have the opposite problem: you may forget to check for an error, and continue to execute in a bad state.