VisualIB  1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
viberror.h File Reference

VisualIB - InterBase wrapper for use in Visual Studio. More...

#include "vibdefines.h"

Go to the source code of this file.

Functions

VIBDLLFUNC void VIBCALL VIBError_GetLastError (const char **message, int *iberror, int *sqlcode)
 We can't throw exceptions directly out of the library, as I want it to be as widely usable as possible.
 

Detailed Description

VisualIB - InterBase wrapper for use in Visual Studio.

Error Handling and Propagation

Author
James Haley

Function Documentation

VIBDLLFUNC void VIBCALL VIBError_GetLastError ( const char **  message,
int *  iberror,
int *  sqlcode 
)

We can't throw exceptions directly out of the library, as I want it to be as widely usable as possible.

Instead, routines that intercept an EIBError or EIBInterBaseError will report it to this module, which can be queried externally when a routine gives an unexpected return value.

Parameters
[inout]message Receives the last error message, if any; "" if not.
[inout]iberror Receives the last IBErrorCode
[inout]sqlcode Receives the last SQLCode
Warning
All three parameters must be non-NULL.