org.apache.camel.processor
Class ThrowExceptionProcessor
java.lang.Object
org.apache.camel.processor.ThrowExceptionProcessor
- All Implemented Interfaces:
- Processor
public class ThrowExceptionProcessor
- extends Object
- implements Processor
The processor which implements the ThrowException DSL
Method Summary |
void |
process(Exchange exchange)
Set the exception in the exchange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrowExceptionProcessor
public ThrowExceptionProcessor(Exception exception)
process
public void process(Exchange exchange)
throws Exception
- Set the exception in the exchange
- Specified by:
process
in interface Processor
- Parameters:
exchange
- the message exchange
- Throws:
Exception
- if an internal processing error has occurred.
Copyright © 2009 Apache Software Foundation. All Rights Reserved.