orpiske commented on code in PR #9433:
URL: https://github.com/apache/camel/pull/9433#discussion_r1118973129
##########
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:
Obs.: this one is pretty minor and I think we can get rid of it if you guys
think this is not worth the effort. I don't think this one matters much in the
big picture.
--
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]