[ 
https://issues.apache.org/jira/browse/PROTON-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robbie Gemmell closed PROTON-1433.
----------------------------------
    Resolution: Invalid

Questions should be asked on the user list. JIRAs can be raised later for 
actual bugs/enhancements. Closing as invalid.

To avoid having to answer this later: You shouldn't throw exceptions out of the 
handlers. You need to pass the information you want in an fashion appropriate 
to your application, related to however you sent the message and expected to 
get a response to begin with.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to