This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit c6325a75f7ad7524a92ec714228b3d51430145ce
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Wed May 27 18:43:08 2020 +0200

    js-loader: add error handler support to the dsl
---
 .../org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
index 9029efd..c962671 100644
--- 
a/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
+++ 
b/camel-k-loader-js/src/main/java/org/apache/camel/k/loader/js/dsl/IntegrationConfiguration.java
@@ -19,6 +19,7 @@ package org.apache.camel.k.loader.js.dsl;
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.BuilderSupport;
 import org.apache.camel.builder.EndpointConsumerBuilder;
+import org.apache.camel.builder.ErrorHandlerBuilder;
 import org.apache.camel.builder.endpoint.EndpointBuilderFactory;
 import org.apache.camel.builder.endpoint.EndpointRouteBuilder;
 import org.apache.camel.model.InterceptDefinition;
@@ -85,4 +86,8 @@ public class IntegrationConfiguration extends BuilderSupport 
implements Endpoint
     public InterceptSendToEndpointDefinition interceptSendToEndpoint(String 
uri) {
         return builder.interceptSendToEndpoint(uri);
     }
+
+    public void errorHandler(ErrorHandlerBuilder handler) {
+        builder.errorHandler(handler);
+    }
 }

Reply via email to