orpiske commented on code in PR #9433:
URL: https://github.com/apache/camel/pull/9433#discussion_r1118888261
##########
core/camel-support/src/main/java/org/apache/camel/support/cache/DefaultProducerCache.java:
##########
@@ -173,7 +175,7 @@ public void releaseProducer(Endpoint endpoint,
AsyncProducer producer) {
@Override
public Exchange send(Endpoint endpoint, Exchange exchange, Processor
resultProcessor) {
if (camelContext.isStopped()) {
- exchange.setException(new RejectedExecutionException("CamelContext
is stopped"));
+ exchange.setException(REJECTED_EXECUTION_EXCEPTION);
Review Comment:
That's a good point. I wonder if we could get away with it by using a better
exception message.
@davsclaus any thoughts about this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]