Re: IllegalCatch extension.
"Oliver Burn" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, that information is not available to the check to make this *smart*decision. In reality the only option is to use the Suppression Filter as you currently doing. In practice if the use of the API is encapsulated, it should not be a major inconvenience. But, if the API is used all throughout your code base................. Cheers, Oliver On Jan 25, 2008 1:26 AM, Emerson Farrugia <[email protected]> wrote: > 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/ > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > ------------------------------------------------------------------------- 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/ _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user