IllegalCatch extension.
"Emerson Farrugia" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, The IllegalCatch check determines if a catch block is trapping generic exceptions, such as Exception, Error, RuntimeException, and Throwable. I'd like to enable this check. However, there are cases when Exception must be caught by the programmer. This often occurs when using third-party libraries whose methods throw Exception, such as the Velocity.mergeTemplate() method. Is it possible for the check to be extended such that an event isn't trigger if the try block throws Exception? I don't know if that information is available to the check. Until then, I'll use a suppression filter. Thanks, Emerson ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/