[
https://issues.apache.org/jira/browse/QPID-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646569#action_12646569
]
Rob Godfrey commented on QPID-1434:
-----------------------------------
Either
throw ex.duplicate();
or
throw ex.recreate();
I can live with
i think recreate is a tiny bit better.
> Add ability to rethrow an AMQException
> --------------------------------------
>
> Key: QPID-1434
> URL: https://issues.apache.org/jira/browse/QPID-1434
> Project: Qpid
> Issue Type: Improvement
> Components: Java Common
> Affects Versions: M3
> Reporter: Martin Ritchie
> Assignee: Rob Godfrey
> Fix For: M4
>
>
> Summary:
> When we receive an exception we often simply rethrow by performing:
> throw receivedException;
> However this makes debugging difficult as the stack trace reflects the
> original point where this exception occurred.
> Adding the ability to perform:
> receivedException.rethrow();
> As has been done to the TransportException in the 0-10 IO Transport layer
> will allow us to improve our error reporting.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.