SlideShare a Scribd company logo
Error handling
Error handling
 Mule ESB provides numerous options for handling errors. Faults that occur
within Mule are referred to as exceptions; when an activity in your Mule
instance fails, Mule throws an exception. To manage these exceptions,
Mule allows you to configure exception strategies.
 From high level perspective, mule fall in two categories:
 System exceptions
 Messaging exceptions
System exceptions
 Mule invokes a System Exception Strategy when an exception is thrown at
the system-level (i.e., when no message is involved, exceptions are handled
by system exception strategies). For example, system exception strategies
handle exceptions that occur:
 During application start-up
 When a connection to an external system fails
 When a system exception strategy occurs, Mule sends an exception
notification to registered listeners, logs the exception, and — if the
exception was caused by a connection failure — executes the reconnection
strategy. System Exception Strategies are not configurable in Mule.
Messaging exceptions
 Mule invokes a Messaging Exception Strategy whenever an exception is
thrown within a flow (i.e., whenever a message is involved, exceptions are
handled by messaging exception strategies).
 In this case, when any messaging exception occurs then current mule flow
stops and flow goes to the exception strategies flow which handles all the
exceptions which was occurred.
 Mule supports five messaging exception strategies as described in further
slides.
Default exception strategies
 Use - Defined and implicitly applied by default to
handle all messaging exceptions that are thrown in
Mule applications
 Transaction error handling - When a message throws
an exception, the default exception strategy rolls
back the message and logs the exception.
Catch exception strategies
 Use - Define a catch exception strategy to customize
the way Mule handles any exception. Catch exception
strategies consume inbound messages.
 Transaction error handling - When a message throws
an exception, the catch exception
strategy always commits the transaction and
consumes the message.
Rollback exception strategy
 Use - Define a rollback exception strategy to ensure that a message that
throws an exception in a flow is rolled back for reprocessing (if the
message source supports redelivery). Rollback exception strategies do not
consume inbound messages.
 Transaction error handling - When a message throws an exception, the
rollback exception strategy makes one or more attempts to rollback the
message and redeliver it for processing (if the message source supports
redelivery). If the message exceeds its redelivery attempts, then the
rollback exception strategy commits the failed transaction and consumes
the message.
Reference exception strategy
 Use - Define a reference exception strategy to refer and
adhere to the error handling parameters defined in a global
catch, rollback or choice exception strategy.
 Transaction error handling - When a message throws an
exception, the reference exception strategy refers and adheres
to the error handling parameters defined in a global catch,
rollback or choice exception strategy. (The reference exception
strategy itself never actually performs any rollback, commit, or
consume activities.)
Choice exception strategy
 Use - Define a choice exception strategy to customize the way
Mule handles a message that throws an exception based on
the message’s content at the moment it throws the exception.
 Transaction error handling - When a message throws an
exception, the choice exception strategy makes a decision
about where to route the message for further processing. (The
choice exception strategy itself never actually performs any
rollback, commit, or consume activities.)
Characteristics
 Each flow can contain only one exception strategy.
 Each exception strategy can contain any number of message
processors.
 Choice exception strategies can contain one or more catch
and/or rollback exception strategies. (Rollback and catch
exception strategies cannot, however, contain other exception
strategies.)
Thanks

More Related Content

Viewers also liked (14)

PPTX
Presentatie Wepro Ingenieursbureau
vanschot
 
PDF
HOA Annual Report Out - 2016 - FINAL
Jon Armendariz, MS, LSSBB, CSM
 
PPT
Cu07821 ppt9 recapitulation
Henk Massink
 
PDF
Mô hình điều khiển
Dv Dv
 
PPTX
Cuidados para las mascotas.
diana valencia lisalda
 
PPTX
Optimizacion De Sistemas Y Funciones
Rolan Flores
 
PPTX
Advanced Methods of Statistical Analysis used in Animal Breeding.
DrBarada Mohanty
 
PPTX
Presentation1
swapanmita
 
PDF
User guide lego mindstorms ev3 10 all enus (2)
Hans Alvarez
 
PPTX
Teatro do absurdo
Tavares tavares
 
PPTX
Linder, Harris County Tax Day Floods
TWCA
 
PDF
Cdm ir (1 q16) 160726 v1
CobreDelMayo
 
PPT
REGULATION OF RESPIRATION
Dr Nilesh Kate
 
Presentatie Wepro Ingenieursbureau
vanschot
 
HOA Annual Report Out - 2016 - FINAL
Jon Armendariz, MS, LSSBB, CSM
 
Cu07821 ppt9 recapitulation
Henk Massink
 
Mô hình điều khiển
Dv Dv
 
Cuidados para las mascotas.
diana valencia lisalda
 
Optimizacion De Sistemas Y Funciones
Rolan Flores
 
Advanced Methods of Statistical Analysis used in Animal Breeding.
DrBarada Mohanty
 
Presentation1
swapanmita
 
User guide lego mindstorms ev3 10 all enus (2)
Hans Alvarez
 
Teatro do absurdo
Tavares tavares
 
Linder, Harris County Tax Day Floods
TWCA
 
Cdm ir (1 q16) 160726 v1
CobreDelMayo
 
REGULATION OF RESPIRATION
Dr Nilesh Kate
 

Similar to Error handling (20)

PPTX
Mule - error handling
Sindhu VL
 
PPTX
Mule exception strategies
Ramakrishna kapa
 
PPTX
Mule exceptions Strategy
Padmanabhan Natarajan, CSM
 
PPTX
Anypoint Studio - Mule ESB Error Handling
Mani Rathnam Gudi
 
PPTX
Mule concepts exception strategies
kunal vishe
 
ODP
Exception handling basics in mule
himajareddys
 
PDF
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
ODP
Mule exception handlingstrategies
D.Rajesh Kumar
 
PPT
Mule exception strategies - Choice Exception Strategy
Ankush Sharma
 
PPTX
Handle exceptions in mule
Son Nguyen
 
PPTX
Mule error handling_rollback exception strategy
kunal vishe
 
PPTX
Mule error handling
chandu1443
 
PPTX
Mule error handling_choice exception strategy
kunal vishe
 
PPTX
Elements in a muleflow
Thang Loi
 
PPTX
Elements in a mule flow
Sindhu VL
 
PPT
Mule exception strategies - Reference Exception Strategy
Ankush Sharma
 
PPTX
Exception handling in Mule 4 _Virtual mule soft meetup may_2020
Om Prakash
 
PPTX
Virtual MuleSoft Meetup may_2020
Om Prakash
 
PPTX
Mulesoft meetup slides mumbai_20113019_exception_handling
Manish Kumar Yadav
 
Mule - error handling
Sindhu VL
 
Mule exception strategies
Ramakrishna kapa
 
Mule exceptions Strategy
Padmanabhan Natarajan, CSM
 
Anypoint Studio - Mule ESB Error Handling
Mani Rathnam Gudi
 
Mule concepts exception strategies
kunal vishe
 
Exception handling basics in mule
himajareddys
 
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
Mule exception handlingstrategies
D.Rajesh Kumar
 
Mule exception strategies - Choice Exception Strategy
Ankush Sharma
 
Handle exceptions in mule
Son Nguyen
 
Mule error handling_rollback exception strategy
kunal vishe
 
Mule error handling
chandu1443
 
Mule error handling_choice exception strategy
kunal vishe
 
Elements in a muleflow
Thang Loi
 
Elements in a mule flow
Sindhu VL
 
Mule exception strategies - Reference Exception Strategy
Ankush Sharma
 
Exception handling in Mule 4 _Virtual mule soft meetup may_2020
Om Prakash
 
Virtual MuleSoft Meetup may_2020
Om Prakash
 
Mulesoft meetup slides mumbai_20113019_exception_handling
Manish Kumar Yadav
 
Ad

More from krishashi (12)

PPTX
Mule validators
krishashi
 
PPTX
Mule filters
krishashi
 
PPTX
Http connector
krishashi
 
PPTX
Variable
krishashi
 
PPTX
Mule expression language
krishashi
 
PPTX
Datamapper
krishashi
 
PPTX
Java component
krishashi
 
PPTX
Variable
krishashi
 
PPTX
Logger
krishashi
 
PPTX
Set payload
krishashi
 
PPTX
File connector
krishashi
 
PPTX
Dataweave
krishashi
 
Mule validators
krishashi
 
Mule filters
krishashi
 
Http connector
krishashi
 
Variable
krishashi
 
Mule expression language
krishashi
 
Datamapper
krishashi
 
Java component
krishashi
 
Variable
krishashi
 
Logger
krishashi
 
Set payload
krishashi
 
File connector
krishashi
 
Dataweave
krishashi
 
Ad

Recently uploaded (20)

PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
PPTX
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
visibel.ai Company Profile – Real-Time AI Solution for CCTV
visibelaiproject
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Basics of Electronics for IOT(actuators ,microcontroller etc..)
arnavmanesh
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
The Future of Artificial Intelligence (AI)
Mukul
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Integrating IIoT with SCADA in Oil & Gas A Technical Perspective.pdf
Rejig Digital
 
PCU Keynote at IEEE World Congress on Services 250710.pptx
Ramesh Jain
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
visibel.ai Company Profile – Real-Time AI Solution for CCTV
visibelaiproject
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Earn Agentblazer Status with Slack Community Patna.pptx
SanjeetMishra29
 

Error handling

  • 2. Error handling  Mule ESB provides numerous options for handling errors. Faults that occur within Mule are referred to as exceptions; when an activity in your Mule instance fails, Mule throws an exception. To manage these exceptions, Mule allows you to configure exception strategies.  From high level perspective, mule fall in two categories:  System exceptions  Messaging exceptions
  • 3. System exceptions  Mule invokes a System Exception Strategy when an exception is thrown at the system-level (i.e., when no message is involved, exceptions are handled by system exception strategies). For example, system exception strategies handle exceptions that occur:  During application start-up  When a connection to an external system fails  When a system exception strategy occurs, Mule sends an exception notification to registered listeners, logs the exception, and — if the exception was caused by a connection failure — executes the reconnection strategy. System Exception Strategies are not configurable in Mule.
  • 4. Messaging exceptions  Mule invokes a Messaging Exception Strategy whenever an exception is thrown within a flow (i.e., whenever a message is involved, exceptions are handled by messaging exception strategies).  In this case, when any messaging exception occurs then current mule flow stops and flow goes to the exception strategies flow which handles all the exceptions which was occurred.  Mule supports five messaging exception strategies as described in further slides.
  • 5. Default exception strategies  Use - Defined and implicitly applied by default to handle all messaging exceptions that are thrown in Mule applications  Transaction error handling - When a message throws an exception, the default exception strategy rolls back the message and logs the exception.
  • 6. Catch exception strategies  Use - Define a catch exception strategy to customize the way Mule handles any exception. Catch exception strategies consume inbound messages.  Transaction error handling - When a message throws an exception, the catch exception strategy always commits the transaction and consumes the message.
  • 7. Rollback exception strategy  Use - Define a rollback exception strategy to ensure that a message that throws an exception in a flow is rolled back for reprocessing (if the message source supports redelivery). Rollback exception strategies do not consume inbound messages.  Transaction error handling - When a message throws an exception, the rollback exception strategy makes one or more attempts to rollback the message and redeliver it for processing (if the message source supports redelivery). If the message exceeds its redelivery attempts, then the rollback exception strategy commits the failed transaction and consumes the message.
  • 8. Reference exception strategy  Use - Define a reference exception strategy to refer and adhere to the error handling parameters defined in a global catch, rollback or choice exception strategy.  Transaction error handling - When a message throws an exception, the reference exception strategy refers and adheres to the error handling parameters defined in a global catch, rollback or choice exception strategy. (The reference exception strategy itself never actually performs any rollback, commit, or consume activities.)
  • 9. Choice exception strategy  Use - Define a choice exception strategy to customize the way Mule handles a message that throws an exception based on the message’s content at the moment it throws the exception.  Transaction error handling - When a message throws an exception, the choice exception strategy makes a decision about where to route the message for further processing. (The choice exception strategy itself never actually performs any rollback, commit, or consume activities.)
  • 10. Characteristics  Each flow can contain only one exception strategy.  Each exception strategy can contain any number of message processors.  Choice exception strategies can contain one or more catch and/or rollback exception strategies. (Rollback and catch exception strategies cannot, however, contain other exception strategies.)