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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]