VisualIB  1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
VIB::IBError Class Reference

IBError is thrown when InterBase errors occur. More...

#include <classVIBError.h>

Inheritance diagram for VIB::IBError:
VIB::Error

Public Member Functions

 IBError ()
 Default constructor, invoked if an unexpected error occurs.
 
 IBError (const char *msg, int pIBErrorCode, int pSQLCode)
 C string constructor.
 
 IBError (const std::string &msg, int pIBErrorCode, int pSQLCode)
 C++ string object constructor.
 
int getIBErrorCode () const
 Obtain the InterBase API error code for the exception.
 
int getSQLCode () const
 Obtain the standard SQL error code for the exception.
 
- Public Member Functions inherited from VIB::Error
 Error ()
 Default constructor, call when there is no message to give.
 
 Error (const char *msg)
 Construct an error with a C string error message.
 
 Error (const std::string &msg)
 Construct an error with a C++ string error message.
 
const std::string & getErrorMsg () const
 Obtain the message associated with the exception.
 

Protected Attributes

int IBErrorCode
 InterBase API error code.
 
int SQLCode
 SQL error code, if the exception is a standard SQL error.
 
- Protected Attributes inherited from VIB::Error
std::string errormsg
 Message associated with the error.
 

Detailed Description

IBError is thrown when InterBase errors occur.

Note
Replaces all InterBase API exception types. Borland exceptions are never propagated by the VisualIB C API layer; instead, the VIB class layer checks for failures in the C API and will throw this new exception object in most cases where the Borland InterBase classes would have thrown.

The documentation for this class was generated from the following file: