Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1433

How can I throw my class specific exceptions from within call backs of handlers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Invalid
    • None
    • None
    • proton-j
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            prmathur@microsoft.com Priyanka Mathur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: