Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18212

camel-reactive-streams: Throw a specific exception type when there are no active subscriptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.18.0
    • camel-reactive-streams
    • None
    • Unknown

    Description

      Currently if you try to produce to a stream that has no subscribers, then an IllegalStateException is thrown.

      There could be cases where no subscriptions are expected. E.g if the subscription is triggered at some undetermined time from an external source like a JAX-RS endpoint or similar.

      Therefore, it could be better to throw a specific exception (E.g like NoActiveSubscriptionsException) so that you have a chance to handle it better in the Camel route.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: