Wednesday, May 15, 2019

Force Proper Error Handling - via Checked Exceptions?

Forcing the calling code to handle the error right away is the correct approach, because it forces the programmer to think about the possibility of an error occurring. That's a key point. The fact that this clutters the code with error checking is unfortunate, but it is a small price to pay for correctness of operation.
http://www.lighterra.com/papers/exceptionsharmful/

No comments:

Post a Comment