- 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>
推薦閱讀
- 深入淺出Android Jetpack
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓版)
- GeoServer Beginner's Guide(Second Edition)
- Java Web程序設計任務教程
- Asynchronous Android Programming(Second Edition)
- JavaScript程序設計(第2版)
- R Data Science Essentials
- PrimeFaces Blueprints
- 零基礎學HTML+CSS
- IPython Interactive Computing and Visualization Cookbook
- C語言程序設計
- Web編程基礎:HTML5、CSS3、JavaScript(第2版)
- Flask開發(fā)Web搜索引擎入門與實戰(zhàn)
- Socket.IO Cookbook
- HTML5程序設計基礎教程