This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 4ca27b4 CAMEL-15129 Camel-Undertow: throwExceptionOnFailure suppress
all exception that not related to HttpStatusCode
4ca27b4 is described below
commit 4ca27b4eed671459ab94f313cda79758ab8a0fc2
Author: Chandrakant Hardahe <[email protected]>
AuthorDate: Fri Jun 5 13:43:28 2020 +0530
CAMEL-15129 Camel-Undertow: throwExceptionOnFailure suppress all exception
that not related to HttpStatusCode
---
.../org/apache/camel/component/undertow/UndertowClientCallback.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowClientCallback.java
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowClientCallback.java
index 6459ac9..7aa5cd6 100644
---
a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowClientCallback.java
+++
b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowClientCallback.java
@@ -183,9 +183,7 @@ class UndertowClientCallback implements
ClientCallback<ClientConnection> {
void hasFailedWith(final Throwable e) {
LOG.trace("Exchange has failed with", e);
- if (Boolean.TRUE.equals(throwExceptionOnFailure)) {
- exchange.setException(e);
- }
+ exchange.setException(e);
finish(null);
}