Looking for Error Trapping examples

Would appreciate any sample error trapping code anyone would care to share -OR- some direction on where to find existing code samples.

This would be for a Desktop App.

Thanks

Not precisely what you’re looking for, but relevant: http://thezaz.com/blog/2013/09/dont_fear_exceptions.html

Also, Exceptions in the User Guide:

User Guide Book 3: Framework, Chapter 8: Debugging, Section 3: Exception Handling