官术网_书友最值得收藏!

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>
主站蜘蛛池模板: 鸡泽县| 平乐县| 宁津县| 邵阳市| 蓬莱市| 南开区| 沅陵县| 和龙市| 安新县| 中江县| 郑州市| 波密县| 玉溪市| 辽宁省| 武威市| 乌拉特后旗| 东乌| 呼玛县| 确山县| 团风县| 雷波县| 夹江县| 阿克苏市| 南郑县| 苍梧县| 皋兰县| 广元市| 宣威市| 长春市| 福建省| 松溪县| 静海县| 金秀| 合江县| 上林县| 怀宁县| 桐柏县| 江源县| 嘉黎县| 钟祥市| 太谷县|