-
Sub-task
-
Resolution: Done
-
Major
-
2.12.1.Final
-
None
It would be good to have a command to generate a new Java exception. A simple command such as :
java-new-exception --named MyException
Would generate :
public class MyException extends RuntimeException { public MyException() { super(); } public MyException(String message) { super(message); } }
Another attribute would allow to extends from whatever exception we want. So something like :
java-new-exception --named MyException --inherits MyOtherException
public class MyException extends MyOtherException { public MyException() { super(); } public MyException(String message) { super(message); } }