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) + } }