You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "essobedo (via GitHub)" <gi...@apache.org> on 2023/02/27 15:13:54 UTC

[GitHub] [camel] essobedo commented on a diff in pull request #9433: CAMEL-19060 + CAMEL-19058: minor improvements

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


##########
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:
   Warning if you do so, the stack trace won't be correct anymore so it will make the debugging more complex



-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org