3. Topics
• What is an Exception?
• How does Outsystems categorize Exceptions?
• How does Outsystems handle Exceptions?
• Exception Encapsulation: Tips and Tricks
• Special Cases
• Timers
• BPT
• REST
4. What is an Exception?
An exception is an abnormal or unprecedented event that
occurs after the execution of a software program or
application. It is a runtime error of an undesired result or
event affecting normal program flow.
An exception is also known as a fault.
A person or thing that is excluded from a general statement
or does not follow a rule.
12. Exception Encapsulation: Tips and Tricks
Integration Layer
• Catch the exception
• Log it
• Define an output with a success and a message
• Do not abort the transaction!
• Optional: Expose a ‘user friendly’ message in case of
unknown error
13. Exception Encapsulation: Tips and Tricks
Core Services Layer
• Which is the context?
• Sub-action of a bigger flow?
• Encapsulate
• Normal action to be used on the users layer?
• Do not encapsulate
• ‘User Friendly’ messages are a must (don’t forget the
translations)
17. Special Cases
REST
• All above a 400 is logged and thrown as an exception
• Sometimes it is an expected behaviour
• OnResponse Event allows to catch the response and
manipulated as needed