Skip to content

Commit 3290b55

Browse files
fix: Enhance exception handler on Camel routes (#107)
1 parent 4d38c04 commit 3290b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/io/github/project/openubl/xsender/camel/routes/SunatRouteBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ public void configure() {
6565

6666
// SOAP Exception
6767
.onException(SoapFault.class)
68-
.handled(true)
68+
.continued(true)
6969
.process(new SoapSunatErrorResponseProcessor())
7070
.end()
7171
// REST exception
7272
.onException(HttpOperationFailedException.class)
73-
.handled(exchange -> {
73+
.continued(exchange -> {
7474
HttpOperationFailedException httpException = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, HttpOperationFailedException.class);
7575
String contentType = httpException.getResponseHeaders().getOrDefault("Content-Type", "");
7676

0 commit comments

Comments
 (0)