orpiske commented on code in PR #9433:
URL: https://github.com/apache/camel/pull/9433#discussion_r1118942637


##########
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:
   I changed it to fill the stack trace once, so I guess this should do the 
trick.



-- 
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]

Reply via email to