|
<< Click to Display Table of Contents >> Error handling |
![]() ![]()
|
BDE functions return error codes to inform the calling program if the function succeeded or failed. The return value is DBIERR_NONE when the function was successful. If an error occurs during the execution of a BDE call, any of the BDE subsystems may push an error context onto the common BDE error stack. This error context allows the application to examine potentially more detailed information about the cause of any error.
Several BDE functions enable the application to retrieve different levels of information about errors:
Error function |
Level of information returned |
Allows any entry on the error stack to be returned. This is the only function that returns native server error codes for SQL drivers. |
|
When the application passes the error code, this function returns a more detailed message; for example, "At end of table." |
|
Pass it an error context type, such as "ecTABLENAME," and it returns specific information; in this case, the full path name of the table involved in the error. |
|
Returns the error code, descriptive error message, and error contexts for the first four error messages on the error stack. |
For additional instructions on using error messages, see the following topics:
Error handling topics%!AL(`errorhandling')