Designing an Error Handler

The example in the preceding section contains an error handler called CheckError. The code in the example includes three steps you can apply to most error handlers: