VisualIB
1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
Main Page
Classes
Files
File List
File Members
VisualIB
Classes
Files
File List
VIB
classVIBDatabase.h
classVIBDataSet.h
classVIBError.h
classVIBSQL.h
classVIBTransaction.h
VIBInternalErrors.h
VIBProperties.h
VIBUtils.h
dllmain.cpp
VIB.h
vibdatabase.cpp
vibdatabase.h
vibdataset.cpp
vibdataset.h
vibdefines.h
viberror.cpp
viberror.h
vibexception.h
vibinlines.h
vibsql.cpp
vibsql.h
vibstring.cpp
vibstring.h
vibtransaction.cpp
vibtransaction.h
vibtypes.h
File Members
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
classVIBError.h
Go to the documentation of this file.
1
7
#ifndef CLASSVIBERROR_H__
8
#define CLASSVIBERROR_H__
9
10
#include <string>
11
12
namespace
VIB
13
{
19
class
Error
20
{
21
protected
:
22
std::string
errormsg
;
23
24
public
:
28
Error
() :
errormsg
(
"Unknown error"
)
29
{
30
}
31
35
Error
(
const
char
*msg) :
errormsg
(msg)
36
{
37
}
38
42
Error
(
const
std::string &msg) :
errormsg
(msg)
43
{
44
}
45
49
const
std::string &
getErrorMsg
()
const
{
return
errormsg
; }
50
};
51
59
class
IBError
:
public
Error
60
{
61
protected
:
62
int
IBErrorCode
;
63
int
SQLCode
;
64
65
public
:
69
IBError
() :
Error
(
"Unknown InterBase error"
),
IBErrorCode
(-1),
SQLCode
(-1)
70
{
71
}
72
76
IBError
(
const
char
*msg,
int
pIBErrorCode,
int
pSQLCode)
77
:
Error
(msg),
IBErrorCode
(pIBErrorCode),
SQLCode
(pSQLCode)
78
{
79
}
80
84
IBError
(
const
std::string &msg,
int
pIBErrorCode,
int
pSQLCode)
85
:
Error
(msg),
IBErrorCode
(pIBErrorCode),
SQLCode
(pSQLCode)
86
{
87
}
88
90
int
getIBErrorCode
()
const
{
return
IBErrorCode
; }
92
int
getSQLCode
()
const
{
return
SQLCode
; }
93
};
94
}
95
96
#endif
97
98
// EOF
99
VIB
classVIBError.h
Generated on Thu Jun 20 2013 10:46:26 for VisualIB by
1.8.2