BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
4 / 18 · Module 7 — Error Handling in Mule · filtered: cheatsheet← prev⊞ allnext →

7.1The mental model

Imagine:

HTTP Listener
     ↓
Validate
     ↓
Salesforce Upsert
     ↓
Billing API
     ↓
Response

Salesforce throws:

SALESFORCE:CONNECTIVITY

Mule creates an error object and looks for the applicable handler.

Conceptually:

try {
    await salesforce.upsert();
}
catch (error) {
    ...
}

But Mule gives errors structured types rather than forcing you to parse exception strings.