WSO2 BPS - Sample Guide - Fault Handling

Sample Guide - Fault Handling

Table of Content


This sample explains about basic fault handling. In fault handling, <throw/> and <rethrow/> are used to generate faults where faults occurs.

Note - <faultHandlers/> should be defined in a parent scope.


Overall Idea

Refer -

In the child scope the input value is checked whether it's equal to 1. If so an InputException1 is thrown. Note that the thrown exception has a "saw:InputException1" qualified name.

eg -


In the parent scope the exception is filtered against its qualified name.

eg -