Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groovy-loader: add error handler support to the dsl #343

Merged
merged 1 commit into from
May 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
}