- WSO2 Developer’s Guide
- Fidel Prieto Estrada Ramón Garrido Lázaro
- 35字
- 2021-07-08 10:06:01
The fault sequence
The fault sequence is used for exception handling when we haven't configured a custom fault sequence. This sequence logs the error code and the current payload, and then the message is dropped:
<?xml version="1.0" encoding="UTF-8"?>
<sequence name="fault" xmlns="http://ws.apache.org/ns/synapse">
<!-- Log the message at the full log level with
the ERROR_MESSAGE and the ERROR_CODE-->
<log level="full">
<property name="MESSAGE"
value="Executing default 'fault' sequence"/>
<property name="ERROR_CODE"
expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE"
expression="get-property('ERROR_MESSAGE')"/>
</log>
<!-- Drops the messages by default if there is a fault -->
<drop/>
</sequence>
推薦閱讀
- ExtGWT Rich Internet Application Cookbook
- Android Studio Essentials
- Instant Zepto.js
- 華為HMS生態(tài)與應用開發(fā)實戰(zhàn)
- Python程序設(shè)計(第3版)
- Python從入門到精通(精粹版)
- Apache Spark Graph Processing
- JSP開發(fā)案例教程
- Microsoft Azure Storage Essentials
- Java Web開發(fā)就該這樣學
- C專家編程
- Visual FoxPro 6.0程序設(shè)計
- Practical GIS
- OpenCV 3.0 Computer Vision with Java
- Python第三方庫開發(fā)應用實戰(zhàn)