James Netherton created CAMEL-18212:
---------------------------------------
Summary: 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
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)