From fbd74981508d62ae131dc0b7c046a81c06f8ee6d Mon Sep 17 00:00:00 2001 From: lburgazzoli Date: Wed, 27 May 2020 18:46:32 +0200 Subject: [PATCH] groovy-loader: add error handler support to the dsl --- .../k/loader/groovy/dsl/IntegrationConfiguration.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/IntegrationConfiguration.groovy b/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/IntegrationConfiguration.groovy index 1776ad8ff..ba9ca164c 100644 --- a/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/IntegrationConfiguration.groovy +++ b/camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/IntegrationConfiguration.groovy @@ -19,6 +19,7 @@ package org.apache.camel.k.loader.groovy.dsl 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 @@ -104,4 +105,8 @@ class IntegrationConfiguration extends BuilderSupport implements Support, Endpoi InterceptSendToEndpointDefinition interceptSendToEndpoint(String uri) { return builder.interceptSendToEndpoint(uri) } + + void errorHandler(ErrorHandlerBuilder handler) { + builder.errorHandler(handler) + } }