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
The following commit(s) were added to refs/heads/master by this push: new 6ceed08 kotlin-loader: add error handler support to the dsl 6ceed08 is described below commit 6ceed081a7036c464c2e8d13c6d5448467d4741d Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Wed May 27 18:57:14 2020 +0200 kotlin-loader: add error handler support to the dsl --- .../org/apache/camel/k/loader/kotlin/dsl/IntegrationConfiguration.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camel-k-loader-kotlin/src/main/kotlin/org/apache/camel/k/loader/kotlin/dsl/IntegrationConfiguration.kt b/camel-k-loader-kotlin/src/main/kotlin/org/apache/camel/k/loader/kotlin/dsl/IntegrationConfiguration.kt index f5827e2..16b4e74 100644 --- a/camel-k-loader-kotlin/src/main/kotlin/org/apache/camel/k/loader/kotlin/dsl/IntegrationConfiguration.kt +++ b/camel-k-loader-kotlin/src/main/kotlin/org/apache/camel/k/loader/kotlin/dsl/IntegrationConfiguration.kt @@ -18,6 +18,7 @@ package org.apache.camel.k.loader.kotlin.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.k.loader.kotlin.KotlinCompilationConfiguration @@ -76,4 +77,8 @@ abstract class IntegrationConfiguration( fun interceptSendToEndpoint(uri: String) : InterceptSendToEndpointDefinition { return builder.interceptSendToEndpoint(uri) } + + fun errorHandler(handler: ErrorHandlerBuilder) { + builder.errorHandler(handler) + } } \ No newline at end of file