- 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>
推薦閱讀
- Arduino by Example
- PyTorch Artificial Intelligence Fundamentals
- 數(shù)據(jù)結(jié)構(gòu)(Python語(yǔ)言描述)(第2版)
- Linux網(wǎng)絡(luò)程序設(shè)計(jì):基于龍芯平臺(tái)
- 精通API架構(gòu):設(shè)計(jì)、運(yùn)維與演進(jìn)
- Java EE 7 Development with NetBeans 8
- Troubleshooting PostgreSQL
- Swift語(yǔ)言實(shí)戰(zhàn)精講
- Hands-On Full Stack Development with Go
- Learning R for Geospatial Analysis
- Serverless Web Applications with React and Firebase
- Hands-On Dependency Injection in Go
- Learning Puppet
- Scratch超人漫游記:創(chuàng)意程序設(shè)計(jì):STEAM創(chuàng)新教育指南
- 深入解析Java虛擬機(jī)HotSpot