CAPIErr objects are used to represent the error stack that all database connections can have. When a database connection is allocated via CAPI.AllocConnect(), a CAPIErr object can be supplied as object for handling the error stack. Various CAPI functions can then be used later to query and clear the error stack.