I've spent several days in code reviews. I kept seeing Exception classes with empty constructors, and that just drives me nuts. I also saw exception constructors taking only a Throwable. That drives me nuts almost as bad. After a few days I realized what the programming recommendation should be:
- All exception constructors should take at least a String parameter
Oh, and programmers that write
throw new FooException("");should be flogged.