Ignoring Errors? Not if they're an Exception!

Brad Abram points out a number of reasons why Exceptions are better than error codes. One that I liked in particular:

Return values can be easily ignored, and often are. Exceptions, on the other hand, take an active role in the flow of your code. This makes failures reported as exceptions difficult to ignore, and improves the robustness of code.

No Comments