Platform SDK: Debugging and Error Handling
Using Structured Exception Handling
The following samples demonstrate how to use structured exception handling in your code.
Using an exception handler
Using a termination handler