Error Handling Overview
See these topics:
Run-Time Library Default Error Processing
Handling Run-Time Errors
Locating Run-Time Errors
Signal Handling
Overriding the Default Run-Time
Library Exception Handler
Obtaining Traceback Information with TRACEBACKQQ