Exception handling - rules provided by CheckStyle
IllegalThrows
Throwing java.lang.Error or java.lang.RuntimeException is almost never acceptable.
MutableException
Ensures that exceptions (defined as any class name conforming to some regular expression) are immutable.
RedundantThrows
Checks for redundant exceptions declared in throws clause such as duplicates, unchecked exceptions or subclasses of another declared exception.
IllegalCatch
Catching java.lang.Exception, java.lang.Error or java.lang.RuntimeException is almost never acceptable.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.