Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Interface Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.1 Overview

Now that you understand the basic use of SourcePro DB, it's time to confront the things that can go wrong. Error handling can be a messy topic under the best of circumstances. Mixing client/server computing with assorted message formats from various vendors, who may offer incomplete support for C++ exceptions, makes it even more complex. The error model of the DB Interface Module aims to keep as many options as possible under your control, while providing sensible default behavior where your application does not take explicit action.

Let's begin our discussion of the error model with an example:

What would happen if each row of anotherTable contained two strings, rather than a string and a float? Or if the database server crashed in the middle of the loop? Or if the application lacked permission to read anotherTable? The good news is that your application wouldn't crash because of one of these errors. Of course, your application still needs to know that an error occurred. With the DB Interface Module error model, there are three ways to provide this information:

The following sections explain the advantages and disadvantages of these alternatives in detail. We have kept the design of the error model of the DB Interface Module as flexible as possible, to accommodate the different needs of different applications.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.