Chapter 10: Handling Error Conditions
This chapter describes how to set up an error status vector where InterBase can store run-time error information, and how to use API functions to handle and report errors.
The following table summarizes the API functions for handling errors:
Table 10.1 Error-handling Functions
Function | Purpose | |
---|---|---|
isc_interprete() | Capture InterBase error messages to a buffer | |
isc_print_sqlerror() | Display a SQL error message | |
isc_print_status() | Display InterBase error messages | |
isc_sqlcode() | Set the value of SQLCODE | |
isc_sql_interprete() | Capture a SQL error message to a buffer |
The chapter covers the following main sections:
- Setting Up an Error Status Vector
- Using Information in the Status Vector
- [[Setting a
SQLCODE
Value on Error]] - Parsing the Status Vector