Presented By
Sindhu VL
 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 configureexception
strategies.
Default exception strategy
 It implicitly applies to all Mule applications — manages
errors (i.e. thrown exceptions) in Mule flows. When your
flows require more sophisticated error management, you
can implement one or more exception strategies to
construct precise, efficient protocols for handling errors.
 Mule ESB’s default exception strategy implicitly and
globally handles all messaging exceptions that are thrown
in Mule applications. You can override Mule’s default
exception strategy by adding a catch, rollback, or choice
exception strategy to a flow. Otherwise, when an exception
is thrown in a flow, Mule automatically rolls back any
pending transaction and logs the exception; if no
transaction is involved, the default exception strategy
simply logs the exception.
Error Types :
1. 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
 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 messagingexception strategies).
 When a message being processed through a Mule flow
throws an exception, normal flow execution stops and
processes transfers to the message processor sequence
within the exception strategy. You can incorporate any
number of message processors – and in one case, other
exception strategies – into an exception strategy to handle
the exception precisely as you wish. The diagram below
illustrates what happens when a message throws an
exception.
Messaging Exceptions Flow :
Types of messaging exception
strategies :
 Default Exception Strategy
 Catch exception strategy
 Rollback exception strategy
 Reference exception strategy
 Choice exception strategy
Default Exception Strategy :
Use : Transaction Error Handling :
 Defined and implicitly
applied by default to handle
all messaging exceptions that
are thrown in Mule
applications
 When a message throws an
exception, the default
exception strategy rolls back
the message and logs the
exception.
Catch Exception Strategy :
Use : Transaction Error Handling :
 When a message throws an
exception, the default
exception strategy rolls back
the message and logs the
exception.
 When a message throws an
exception, the catch
exception
strategyalways commits the
transaction and consumes the
message.
Rollback Exception Strategy :
Use :
Transaction Error
Handling :
 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.
 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 :
Transaction Error
Handling :
 Define a reference exception
strategy to refer and adhere to
the error handling
parameters defined in a
global catch, rollback or
choice exception strategy.
 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 :
Transaction Error
Handling :
 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.
 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 of messaging
exception strategies:
 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.)
Thank You!!!!!!!!!!!!

More Related Content

PPTX
Error handling with respect to mule
PPTX
Error handling in mule
PPTX
Mule - error handling
PPTX
Mule concepts exception strategies
PPTX
Mule error handling_choice exception strategy
PPT
Mule exception strategies - Catch exception strategy
PPTX
Error handling
PPTX
Mule error handling
Error handling with respect to mule
Error handling in mule
Mule - error handling
Mule concepts exception strategies
Mule error handling_choice exception strategy
Mule exception strategies - Catch exception strategy
Error handling
Mule error handling

What's hot (9)

PPTX
Mule exception strategies
PPTX
Handle exceptions in mule
PPTX
A short introduction on error handling in anypoint studio
PPTX
Anypoint Studio - Mule ESB Error Handling
PPTX
Mule exception strategies
PPT
Mule exception strategies - Reference Exception Strategy
PDF
Exception strategies in MuleSoft Anypoint Studio
PPTX
Mule exceptions Strategy
Mule exception strategies
Handle exceptions in mule
A short introduction on error handling in anypoint studio
Anypoint Studio - Mule ESB Error Handling
Mule exception strategies
Mule exception strategies - Reference Exception Strategy
Exception strategies in MuleSoft Anypoint Studio
Mule exceptions Strategy

Viewers also liked (20)

PPTX
Mule esb parts
PPTX
Munit
PPTX
Content based routing tutorial in mule
PPTX
Testing mule
PPTX
Debugging mule
PPTX
Xslt attributes
PPTX
Quartz connector mule
PPTX
Configuration patterns in mule
PPTX
Groovy component
PPTX
Component bindings in mule
PPTX
Xslt mule
PPTX
Mule concepts
PPTX
Working of mule
PPTX
Service orchestration by using flows
PPTX
Flows and subflows in mule
PPTX
Concepts in mule
PPTX
File connector mule
PPTX
Mule esb enterprise
PPTX
Enterprise service bus mule
PPTX
Mule requester
Mule esb parts
Munit
Content based routing tutorial in mule
Testing mule
Debugging mule
Xslt attributes
Quartz connector mule
Configuration patterns in mule
Groovy component
Component bindings in mule
Xslt mule
Mule concepts
Working of mule
Service orchestration by using flows
Flows and subflows in mule
Concepts in mule
File connector mule
Mule esb enterprise
Enterprise service bus mule
Mule requester

Similar to Mule errors (20)

ODP
Exception handling basics in mule
ODP
Mule exception handlingstrategies
PPTX
Mule error handling_rollback exception strategy
PPT
Mule exception strategies - Choice Exception Strategy
PPTX
Mule error handling
PPTX
Elements in a muleflow
PPTX
Elements in a mule flow
PPTX
Exception handling in Mule 4 _Virtual mule soft meetup may_2020
PPTX
Virtual MuleSoft Meetup may_2020
PPTX
Mulesoft meetup slides mumbai_20113019_exception_handling
PPTX
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
PPTX
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
PPTX
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
PPTX
Vancouver mulesoft meetup_23-july
PPTX
Mule soft meetup__dubai_12_june- Error Handling
PPTX
Online Spanish meetup #1
PPTX
Error Handling In Mule 4 | MuleSoft Mysore Meetup #10
PDF
Virtual Meetup: Mule 4 Error Handling and Logging
PPTX
Mule meetup Hyderabad
PPTX
MuleSoft Kochi Meetup #5– Handling Mule Exceptions
Exception handling basics in mule
Mule exception handlingstrategies
Mule error handling_rollback exception strategy
Mule exception strategies - Choice Exception Strategy
Mule error handling
Elements in a muleflow
Elements in a mule flow
Exception handling in Mule 4 _Virtual mule soft meetup may_2020
Virtual MuleSoft Meetup may_2020
Mulesoft meetup slides mumbai_20113019_exception_handling
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
Vancouver mulesoft meetup_23-july
Mule soft meetup__dubai_12_june- Error Handling
Online Spanish meetup #1
Error Handling In Mule 4 | MuleSoft Mysore Meetup #10
Virtual Meetup: Mule 4 Error Handling and Logging
Mule meetup Hyderabad
MuleSoft Kochi Meetup #5– Handling Mule Exceptions

More from Sindhu VL (18)

PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Core concepts in mule
PPTX
Basics of mule for beginners
PPTX
Mule testing
PPTX
Mule securing
PPTX
Mule debugging
PPTX
Bindings of components in mule
PPTX
Using maven with mule
PPTX
Using mule configuration patterns
PPTX
Using flows for service orchestration
PPTX
Mule requestor component
PPTX
Encrption in mule
PPTX
Mule esb for beginners
PPTX
Design flows in mule
PPTX
Flows in mule
PPTX
Connectors in mule
PPTX
Choice router mule
Mule - beginners guide
Core concepts - mule
Core concepts in mule
Basics of mule for beginners
Mule testing
Mule securing
Mule debugging
Bindings of components in mule
Using maven with mule
Using mule configuration patterns
Using flows for service orchestration
Mule requestor component
Encrption in mule
Mule esb for beginners
Design flows in mule
Flows in mule
Connectors in mule
Choice router mule

Recently uploaded (20)

PPTX
Update on GST Tribunal.pptxbxhsbsbsbsgzzhhsha
PPTX
GROUP-1-PA-103-PPT-BULQUERIN-CORTEZ-MORENO.pptx
PPTX
DIGITAL DESIGN AND.pptxttttttttttttttttttt
PDF
case studies and literature study for a salon design
PDF
Architects in Wave City Creating Dream Homes That Inspire.pdf
PPTX
Healthcare pitch deck (1).pptx is a great
PPTX
water supply and waste management , water demand
PDF
DLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCE
PDF
Interview Notes - C Studio 2025 - Character
PPTX
Black and Orange Dark Simple and Straightforward Gym Business Meeting Visual ...
DOCX
allianz arena munich case study of long span structure
PPTX
9Slide-Fashion-Templateaaaaaaaaaaaaaaaaa
PPTX
Design_Thinking_intro[2].pptx design thinking intro
PPTX
antenna ppt basic antenna and its working
PPTX
Advanced Pharmaceutical Analysis-Lecture Two.pptx
PPTX
carcinogenic agevcccvvvvhhgxdsxcgjnts.pptx
PDF
Fashion terms- fashion industry terms.pdf
PPTX
VADODARA URBAN ISSUE SOLUTION DONE LATEST
PPTX
History of Architecture - post modernism ass.pptx
Update on GST Tribunal.pptxbxhsbsbsbsgzzhhsha
GROUP-1-PA-103-PPT-BULQUERIN-CORTEZ-MORENO.pptx
DIGITAL DESIGN AND.pptxttttttttttttttttttt
case studies and literature study for a salon design
Architects in Wave City Creating Dream Homes That Inspire.pdf
Healthcare pitch deck (1).pptx is a great
water supply and waste management , water demand
DLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCEDLL_SCIENCE
Interview Notes - C Studio 2025 - Character
Black and Orange Dark Simple and Straightforward Gym Business Meeting Visual ...
allianz arena munich case study of long span structure
9Slide-Fashion-Templateaaaaaaaaaaaaaaaaa
Design_Thinking_intro[2].pptx design thinking intro
antenna ppt basic antenna and its working
Advanced Pharmaceutical Analysis-Lecture Two.pptx
carcinogenic agevcccvvvvhhgxdsxcgjnts.pptx
Fashion terms- fashion industry terms.pdf
VADODARA URBAN ISSUE SOLUTION DONE LATEST
History of Architecture - post modernism ass.pptx

Mule errors

  • 2.  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 configureexception strategies.
  • 3. Default exception strategy  It implicitly applies to all Mule applications — manages errors (i.e. thrown exceptions) in Mule flows. When your flows require more sophisticated error management, you can implement one or more exception strategies to construct precise, efficient protocols for handling errors.  Mule ESB’s default exception strategy implicitly and globally handles all messaging exceptions that are thrown in Mule applications. You can override Mule’s default exception strategy by adding a catch, rollback, or choice exception strategy to a flow. Otherwise, when an exception is thrown in a flow, Mule automatically rolls back any pending transaction and logs the exception; if no transaction is involved, the default exception strategy simply logs the exception.
  • 4. Error Types : 1. 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
  • 5.  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 messagingexception strategies).  When a message being processed through a Mule flow throws an exception, normal flow execution stops and processes transfers to the message processor sequence within the exception strategy. You can incorporate any number of message processors – and in one case, other exception strategies – into an exception strategy to handle the exception precisely as you wish. The diagram below illustrates what happens when a message throws an exception.
  • 7. Types of messaging exception strategies :  Default Exception Strategy  Catch exception strategy  Rollback exception strategy  Reference exception strategy  Choice exception strategy
  • 8. Default Exception Strategy : Use : Transaction Error Handling :  Defined and implicitly applied by default to handle all messaging exceptions that are thrown in Mule applications  When a message throws an exception, the default exception strategy rolls back the message and logs the exception.
  • 9. Catch Exception Strategy : Use : Transaction Error Handling :  When a message throws an exception, the default exception strategy rolls back the message and logs the exception.  When a message throws an exception, the catch exception strategyalways commits the transaction and consumes the message.
  • 10. Rollback Exception Strategy : Use : Transaction Error Handling :  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.  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.
  • 11. Reference Exception Strategy : Use : Transaction Error Handling :  Define a reference exception strategy to refer and adhere to the error handling parameters defined in a global catch, rollback or choice exception strategy.  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.)
  • 12. Choice Exception Strategy : Use : Transaction Error Handling :  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.  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.)
  • 13. Characteristics of messaging exception strategies:  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.)