Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Invalid
-
None
-
None
-
None
Description
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.