This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Surround with try-catch should allow a user to enter a template just like in code templates which can be used to setup their catch statements to match whatever libraries they may be using. A user on nbusers brought this up, and they would wish to use LogFactory. Too, it is possible some others would want to use other APIs. This sounded like a good idea, so I filed an issue for them. I believe the current options should still be available as check boxes such as: _ Use o.o.u.Exceptions.printStrackTrace _ Use j.u.l.Logger _ Use Exception.printStackTrace (though this one needs to really be able to be turned off...isn't able now) _ Use custom template and that would fix the issue.
See issue #116818. *** This issue has been marked as a duplicate of 116818 ***