Error-handling Requirements
Go Up to Additional Requirements
Most API functions return status information in an error status vector, an array of 20 longs. To handle InterBase error conditions, should they arise, applications should declare a status vector as follows:
#include <ibase.h>
. . .
ISC_STATUS status_vector[20];
ISC_STATUS
is a #define
in ibase.h
provided for programming convenience and platform independence.
ibase.h
also contains #define
directives for all InterBase error conditions. Applications can use API error-handling functions to construct error messages from the status vector that are based on these error conditions, or can examine the status vector directly for particular error conditions using the #define
directives in place of error numbers. Using #define
directives in this manner makes source code easier to understand and maintain.
For more information about error handling, see Working with Events.