This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 8427bcb  Added setFaultBody EIP docs
8427bcb is described below

commit 8427bcbb9de673d07c9d93887a7a5a37c4f29d15
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Mar 6 15:43:50 2018 +0100

    Added setFaultBody EIP docs
---
 .../src/main/docs/eips/setFaultBody-eip.adoc       | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/camel-core/src/main/docs/eips/setFaultBody-eip.adoc 
b/camel-core/src/main/docs/eips/setFaultBody-eip.adoc
new file mode 100644
index 0000000..095d9ed
--- /dev/null
+++ b/camel-core/src/main/docs/eips/setFaultBody-eip.adoc
@@ -0,0 +1,39 @@
+[[setFaultBody-eip]]
+== Set Fault Body EIP
+
+The SetFaultBody EIP allows you to set contents of a fault message's body.
+
+=== Options
+
+// eip options: START
+The Set Fault Body EIP has no options.
+// eip options: END
+
+=== Examples
+
+The following example shows how to use the SetFaultBody EIP
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+    public void configure() {
+        from("direct:a")
+            .setFaultBody(constant("test"))
+            .to("direct:b");
+    }
+};
+----
+
+
+And the same example using XML:
+
+[source,xml]
+----
+<camelContext xmlns="http://camel.apache.org/schema/spring";>
+    <route>
+        <from uri="direct:a"/>
+        <setFaultBody><constant>test</constant></setFaultBody>
+        <to uri="direct:b"/>
+    </route>
+</camelContext>
+----

-- 
To stop receiving notification emails like this one, please contact
acosent...@apache.org.

Reply via email to