On Tue, May 26, 2009 at 7:54 AM, huntc <hu...@mac.com> wrote:
>
> Hi Claus,
>
> There is a setFaultBody and a setFaultHeader but I am not sure of how to use
> these in place of throwFault. Do you have an example? Here's what I
> presently do:
>
> ...
>  .otherwise()
>  .throwFault(
>    "Unknown notification sent by fingerprint reader");
>
> Thanks for your time.

  .setFaultBody(
    "Unknown notification sent by fingerprint reader");

throwFault is renamed to throwException in Camel 2.0 as it is what we
need there.

And as a FAULT is just another Message just like IN or OUT, you should
use setFaultBody instead.


>
> Kind regards,
> Christopher
>
> --
> View this message in context: 
> http://www.nabble.com/throwFault-deprecated---what-is-the-equivalent-for-1.x--tp23717019p23717157.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to