Priyanka Mathur created PROTON-1433:
---------------------------------------
Summary: 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
Affects Versions: 0.15.0
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]