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

  • 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>
主站蜘蛛池模板: 普兰店市| 察哈| 永嘉县| 大名县| 根河市| 上栗县| 南城县| 房产| 收藏| 西吉县| 大姚县| 炉霍县| 兰州市| 都匀市| 公安县| 诸城市| 嫩江县| 青岛市| 象山县| 灵台县| 崇阳县| 石家庄市| 鹤山市| 南安市| 平利县| 肇东市| 仙桃市| 武清区| 安化县| 库车县| 东平县| 咸丰县| 黔西| 青岛市| 兴宁市| 德令哈市| 衡南县| 六安市| 塘沽区| 开鲁县| 化德县|