You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2017/03/08 14:57:38 UTC
[jira] [Updated] (PROTON-1433) How can I throw my class specific
exceptions from within call backs of handlers.
[ https://issues.apache.org/jira/browse/PROTON-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated PROTON-1433:
-----------------------------------
Affects Version/s: (was: 0.15.0)
> How can I throw my class specific exceptions from within call backs of handlers.
> --------------------------------------------------------------------------------
>
> Key: PROTON-1433
> URL: https://issues.apache.org/jira/browse/PROTON-1433
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-j
> Reporter: Priyanka Mathur
> Priority: Blocker
>
> I have defined my class which extends BaseHandler. Now if everything goes fine I receive callbacks especially I'm interested in onLinkFlow, onDelivery.
> Once I'm in onDelivery, I get the disposition for the sent message. Now I want to understand the state of remote from that message. I'm easily able to get delivery state and relevant status. Now If the message was rejected, I want to throw a custom exception from this class to the user of my class. I'm able to throw generic exceptions such as IllegalStateException. However if I throw my custom exception, compiler complains. Where do I have to define that my class throws custom exceptions for proton to be able to deliver it to my class.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org