Vacant Exception Swallowers

So, I guess the question raised in Mitch’s counter-post following my thoughts on checked exceptions in Java is whether we should have compiler errors for vacant exception handlers or whether we need to cull the developer population of vacant headed developers who think that empty exception handlers are acceptable. 

In the same way that enforcing coding standards (eg using code analysis/FxCop) doesn’t ensure developers write good code, neither does having checked exceptions.  I guess one reason I like checked exceptions is that I have an idea of under what conditions a method call will throw an exception (is is of course assuming that framework developers use the concept properly).

Leave a comment