BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
15 / 81 · Module 7 — Error Handling in Mule · filtered: interview← prev⊞ allnext →

7.7Flow-level Error Handler

You can attach an Error Handler to a flow.

Conceptually:

<flow name="customer-flow">

    <http:listener .../>

    <salesforce:upsert .../>

    <error-handler>

        <on-error-propagate
            type="SALESFORCE:CONNECTIVITY">
            ...
        </on-error-propagate>

        <on-error-continue
            type="SALESFORCE:INVALID_INPUT">
            ...
        </on-error-continue>

    </error-handler>

</flow>

Think:

try {
    ENTIRE FLOW
}
catch specific errors {
    ...
}