# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. # Note: I used the Netbeans IDE Diff in order to create a patch based on the original version of the file and my copy of changes. # Not sure if this is the best way but it shows the changes Im talking about. - mkopka - Marty Kopka - 20100709 - 11:30am --- C:\Documents and Settings\mkopka1\.netbeans\6.9\config\Templates\Classes\Exception.java +++ C:\Documents and Settings\mkopka1\.netbeans\6.9\config\Templates\Classes\Exception.bak.java @@ -17,14 +17,31 @@ * Creates a new instance of ${name} without detail message. */ public ${name}() { + super(); } - /** * Constructs an instance of ${name} with the specified detail message. - * @param msg the detail message. + * @param message the detail message. */ - public ${name}(String msg) { - super(msg); + public ${name}(String message) { + super(message); } + + /** + * Constructs an instance of ${name} with the specified root cause of this exception. + * @param cause Throwable representing the root cause of this exception. + */ + public ${name}(Throwable cause) { + super(cause); } + + /** + * Constructs an instance of ${name} with the specified detail message and root cause of this exception. + * @param message the detail message. + * @param cause Throwable representing the root cause of this exception. + */ + public ${name}(String message, Throwable cause) { + super(message, cause); + } +}