org.apache.camel.processor.interceptor
Class HandleFaultInterceptor
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.DelegateProcessor
org.apache.camel.processor.interceptor.HandleFaultInterceptor
- All Implemented Interfaces:
- Navigate, Processor, Service
public class HandleFaultInterceptor
- extends DelegateProcessor
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
HandleFaultInterceptor
public HandleFaultInterceptor()
HandleFaultInterceptor
public HandleFaultInterceptor(Processor processor)
toString
public String toString()
- Overrides:
toString
in class DelegateProcessor
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Specified by:
process
in interface Processor
- Overrides:
process
in class DelegateProcessor
- Parameters:
exchange
- the message exchange
- Throws:
Exception
- if an internal processing error has occurred.
handleFault
protected void handleFault(Exchange exchange)
- Handles the fault message by converting it to an Exception
Apache CAMEL