You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2022/06/21 10:13:00 UTC

[jira] [Resolved] (CAMEL-18212) camel-reactive-streams: Throw a specific exception type when there are no active subscriptions

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

James Netherton resolved CAMEL-18212.
-------------------------------------
    Resolution: Fixed

> camel-reactive-streams: Throw a specific exception type when there are no active subscriptions
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18212
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18212
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-reactive-streams
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 3.18.0
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)