zhfeng commented on code in PR #8505:
URL: https://github.com/apache/camel-quarkus/pull/8505#discussion_r3045994002
##########
extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java:
##########
@@ -159,6 +159,20 @@ void camelServices(
}
+ /**
+ * Register common Camel exception types for reflection.
+ */
+ @BuildStep
+ ReflectiveClassBuildItem registerCommonExceptions() {
+ return ReflectiveClassBuildItem.builder(
+ "org.apache.camel.ExchangeTimedOutException",
+ "org.apache.camel.CamelAuthorizationException",
+ "org.apache.camel.CamelExecutionException",
+ "org.apache.camel.NoSuchEndpointException",
+
"org.apache.camel.processor.ThrottlerRejectedExecutionException")
+ .build();
Review Comment:
Hmm, is there any way we can find the `onException` classes at the build
time? if so, we can register them on demand and maybe work with the customer
classes as well?
--
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]