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.

Bug 67353 - Exception Template needs Updateing to include the ability to repackage exceptions.
Summary: Exception Template needs Updateing to include the ability to repackage except...
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 20:16 UTC by pulliamd
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pulliamd 2005-10-22 20:16:56 UTC
This is something I do on a fairly regular basis.  I would like to sugest adding
the following constructor to the JavaException template used in Netbeans to
create a new exception.
[code]
public <Exception Name Here>(String msg, Throwable inner) {
     super(msg, inner);
}
[/code]

This constructor enables the new exception to repackage another exception to
re-throw it.  Right now I just add it to all exceptions that I make but it would
be convientient if it was added to the default templates with Netbeans.
Comment 1 Tomas Zezula 2006-01-24 17:43:36 UTC
Reassigning to Honza.
Comment 2 Jan Pokorsky 2007-03-19 14:05:25 UTC
Use Menu/Tools/Template Manager to customize your Java Exception template.