XMLWordPrintable

Details

    Description

      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);
          }
      
      }
      

      Attachments

        Activity

          People

            agoncal Antonio Goncalves (Inactive)
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: