[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:50:35 EDT 2014
[ https://issues.jboss.org/browse/FORGE-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Goncalves updated FORGE-2091:
-------------------------------------
Description:
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 {
public MyException() {
super();
}
public MyException(String message) {
super(message);
}
}
{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 {
public MyException() {
super();
}
public MyException(String message) {
super(message);
}
}
{code}
was:
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}
> 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 {
> public MyException() {
> super();
> }
> public MyException(String message) {
> super(message);
> }
> }
> {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 {
> public MyException() {
> super();
> }
> public MyException(String message) {
> super(message);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the forge-issues
mailing list