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.
I would like an action I could trigger that would insert a try-catch block around the selected line or lines of code, indenting the code approriately. A good start would be just to add the braces and brackets and not fill in any exception type, just move the cursor to the catch clause. This alone would be very useful. However, it could be extended to detect and add exception catch clauses (Not worth the effort in the near future): 1. Catch the lowest common superclass of all checked exceptions thrown in the code. 2. Create a seperate catch clause for each exception type thrown.
Cleaning up before 4.0 planning
Target milestone was changed from not determined to TBD
*** This issue has been marked as a duplicate of 28971 ***