Skip to content

Commit

Permalink
groovy-loader: add error handler support to the dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed May 27, 2020
1 parent 6ceed08 commit 36ae8b4
Showing 1 changed file with 5 additions and 0 deletions.
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)
}
}

0 comments on commit 36ae8b4

Please sign in to comment.