org.apache.camel.processor
Class ThrowFaultProcessor

java.lang.Object
  extended by org.apache.camel.processor.ThrowFaultProcessor
All Implemented Interfaces:
Processor

public class ThrowFaultProcessor
extends Object
implements Processor

The processor which implements the ThrowFault DSL


Constructor Summary
ThrowFaultProcessor(Throwable fault)
           
 
Method Summary
 void process(Exchange exchange)
          Set the fault message in the exchange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowFaultProcessor

public ThrowFaultProcessor(Throwable fault)
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Set the fault message in the exchange

Specified by:
process in interface Processor
Throws:
Exception - if an internal processing error has occurred.
See Also:
Processor.process(org.apache.camel.Exchange)


Copyright © 2010 IONA Open Source Community. All Rights Reserved.