[forge-issues] [JBoss JIRA] (FORGE-2091) Being able to create a new Java exception

Antonio Goncalves (JIRA) issues at jboss.org
Fri Oct 24 17:27:34 EDT 2014


Antonio Goncalves created FORGE-2091:
----------------------------------------

             Summary: Being able to create a new Java exception
                 Key: FORGE-2091
                 URL: https://issues.jboss.org/browse/FORGE-2091
             Project: Forge
          Issue Type: Sub-task
          Components: Parsers / File Manipulation
    Affects Versions: 2.12.1.Final
            Reporter: Antonio Goncalves
             Fix For: 2.x Future


It would be good to have a command to generate a new Java exception. A simple command such as :

{code}
java-new-exception --named MyException
{code}

Would generate :  

{code}
public class MyException extends RuntimeException {

}
{code}

Another attribute would allow to extends from whatever exception we want. So something like : 

{code}
java-new-exception --named MyException --inherits MyOtherException
{code}

{code}
public class MyException extends MyOtherException {

}
{code}




--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list