Search in sources :

Example 1 with DoCatchRouteNode

use of org.apache.camel.impl.DoCatchRouteNode in project camel by apache.

the class TraceInterceptor method traceDoCatch.

private void traceDoCatch(TracedRouteNodes traced, Exchange exchange) throws Exception {
    if (traced.getLastNode() != null) {
        traced.addTraced(new DefaultRouteNode(traced.getLastNode().getProcessorDefinition(), traced.getLastNode().getProcessor()));
    }
    traced.addTraced(new DoCatchRouteNode());
    // log and trace so we have the from -> doCatch event as well
    logExchange(exchange);
    traceExchange(exchange);
    traced.addTraced(new DefaultRouteNode(node, super.getProcessor()));
}
Also used : DoCatchRouteNode(org.apache.camel.impl.DoCatchRouteNode) DefaultRouteNode(org.apache.camel.impl.DefaultRouteNode)

Aggregations

DefaultRouteNode (org.apache.camel.impl.DefaultRouteNode)1 DoCatchRouteNode (org.apache.camel.impl.DoCatchRouteNode)1