Fix for TodoOpenApiV3_IT
@@ -50,7 +50,7 @@ public class OnExceptionHandlerTest {
CamelContext context = new DefaultCamelContext();
Exchange exchange = new ExchangeBuilder(context).build();
- exchange.setException(e);
+ exchange.setProperty(Exchange.EXCEPTION_CAUGHT, e);
ApiProviderOnExceptionHandler handler = new ApiProviderOnExceptionHandler();
handler.setProperties(configuredProperties);
@@ -75,7 +75,7 @@ public class OnExceptionHandlerTest {
"ENTITY_NOT_FOUND_ERROR", "entity not found");
Exchange exchange = new ExchangeBuilder(new DefaultCamelContext()).build();
- exchange.setException(e);
+ exchange.setProperty(Exchange.EXCEPTION_CAUGHT, e);
ApiProviderOnExceptionHandler handler = new ApiProviderOnExceptionHandler();
handler.setProperties(configuredProperties);
