Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Nuno Mendes
78
Views
2
Comments
Exception Handling in Preparation
Question
Hi,
In a result of a OutDocumenter output (the Best Practices Report), one of the items refers to Exception Handling in Preparation, it says that they should be avoided.
I would like to know why?
Not urgent just for information.
Best Regards,
Nuno Mendes
Joao Gomes
Staff
Hello Nuno,
The preparation is the basic logic you have to load a screen. Errors here would render an incorrect or incomplete screen, and that is why it is not recommended that you handle exceptions there (as they would allow the screen rendering). The best practices report assumes that you cannot safely recover from a preparation exception.
This does not mean however that you should leave exceptions unhandled. You should always have generic exception handling at the screen flow level.
Hope this helped
João Gomes
PS: BTW, as all best practices, there may be exceptions to this rule
1 reply
18 Jan 2008
Show thread
Hide thread
Nuno Mendes
Thanks for the information.
Best Regards,
Nuno Mendes
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...