SlideShare a Scribd company logo
MULE
ERROR HANDLING
C H A N D U 1 4 4 3
EXCEPTIONS
• Mule provides numerous options for handling errors. Faults that occur within Mule are
referred to as exceptions
• There are two categories of exceptions in mule:
1) System Exceptions
2) Messaging Exceptions
SYSTEM EXCEPTION
• Mule invokes a System Exception Strategy when an exception is thrown at
the system-level
• No message is involved, exceptions are handled by system exception strategies
EX: During application start-up or When a connection to an external system fails
• Mule sends exception to registered listener and logs the exception
• If exception is due to connection failure executes reconnection strategy to connect for
a specific number of times
MESSAGE EXCEPTION
• Thrown within a flow whenever a message is involved
• Handled by messaging exception strategies
• Mule flow throws an exception, normal flow execution stops and processes transfers to
the message processor sequence within the exception strategy
• Mule supports five types of messaging exception strategies, each of which is capable
of handling errors that occur in flows which process transactions
TYPES OF MESSAGING EXCEPTION
STRATEGIES
• Default Exception Strategy
• Catch Exception Strategy
• Choice Exception Strategy
• Reference Exception Strategy
• Rollback Exception Strategy
BEST PRACTICE
• Create a global default exception strategy to customize the way
Mule implicitly handles all exceptions that occur in your application.
• Create global exception strategies by defining them outside a flow globalException.xml
• Add reference exception strategy in your flow and refer to global exception strategy
• Set a default global exception strategy by creating a global configuration element and
setting its default exception strategy to a global exception strategy
THANK YOU

More Related Content

Similar to Mule error handling (18)

PPTX
Error handling in mule
Sindhu VL
 
PPTX
Mule error handling
VirtusaPolaris
 
PPTX
Error handling with respect to mule
Sindhu VL
 
PPTX
Mule errors
Sindhu VL
 
PDF
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
PPTX
Mule exceptions Strategy
Padmanabhan Natarajan, CSM
 
PPTX
Handle exceptions in mule
Son Nguyen
 
PPTX
Muleflowarchitecturepart2
vijaynerd
 
PPT
Mule exception strategies - Catch exception strategy
Ankush Sharma
 
PPT
Mule exception strategies - Reference Exception Strategy
Ankush Sharma
 
PPTX
Vancouver mulesoft meetup_23-july
Vikalp Bhalia
 
PPTX
Mule filters
krishashi
 
PPTX
Mule error handling_choice exception strategy
kunal vishe
 
PPTX
Mule filters
Padmanabhan Natarajan, CSM
 
PPTX
Mule error handling_rollback exception strategy
kunal vishe
 
PPTX
Online Spanish meetup #1
Alexandra N. Martinez
 
ODP
Mule exception handlingstrategies
D.Rajesh Kumar
 
ODP
Exception handling basics in mule
himajareddys
 
Error handling in mule
Sindhu VL
 
Mule error handling
VirtusaPolaris
 
Error handling with respect to mule
Sindhu VL
 
Mule errors
Sindhu VL
 
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
Mule exceptions Strategy
Padmanabhan Natarajan, CSM
 
Handle exceptions in mule
Son Nguyen
 
Muleflowarchitecturepart2
vijaynerd
 
Mule exception strategies - Catch exception strategy
Ankush Sharma
 
Mule exception strategies - Reference Exception Strategy
Ankush Sharma
 
Vancouver mulesoft meetup_23-july
Vikalp Bhalia
 
Mule filters
krishashi
 
Mule error handling_choice exception strategy
kunal vishe
 
Mule error handling_rollback exception strategy
kunal vishe
 
Online Spanish meetup #1
Alexandra N. Martinez
 
Mule exception handlingstrategies
D.Rajesh Kumar
 
Exception handling basics in mule
himajareddys
 

Recently uploaded (20)

PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
The Future of Artificial Intelligence (AI)
Mukul
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Ad

Mule error handling

  • 1. MULE ERROR HANDLING C H A N D U 1 4 4 3
  • 2. EXCEPTIONS • Mule provides numerous options for handling errors. Faults that occur within Mule are referred to as exceptions • There are two categories of exceptions in mule: 1) System Exceptions 2) Messaging Exceptions
  • 3. SYSTEM EXCEPTION • Mule invokes a System Exception Strategy when an exception is thrown at the system-level • No message is involved, exceptions are handled by system exception strategies EX: During application start-up or When a connection to an external system fails • Mule sends exception to registered listener and logs the exception • If exception is due to connection failure executes reconnection strategy to connect for a specific number of times
  • 4. MESSAGE EXCEPTION • Thrown within a flow whenever a message is involved • Handled by messaging exception strategies • Mule flow throws an exception, normal flow execution stops and processes transfers to the message processor sequence within the exception strategy • Mule supports five types of messaging exception strategies, each of which is capable of handling errors that occur in flows which process transactions
  • 5. TYPES OF MESSAGING EXCEPTION STRATEGIES • Default Exception Strategy • Catch Exception Strategy • Choice Exception Strategy • Reference Exception Strategy • Rollback Exception Strategy
  • 6. BEST PRACTICE • Create a global default exception strategy to customize the way Mule implicitly handles all exceptions that occur in your application. • Create global exception strategies by defining them outside a flow globalException.xml • Add reference exception strategy in your flow and refer to global exception strategy • Set a default global exception strategy by creating a global configuration element and setting its default exception strategy to a global exception strategy