#include <SQLDriver.h>
Definition at line 20 of file SQLDriver.h.
◆ SQLDriverException() [1/3]
SQLDriverException::SQLDriverException |
( |
const String & | _name, |
|
|
Exception * | _cause ) |
◆ SQLDriverException() [2/3]
SQLDriverException::SQLDriverException |
( |
const String & | _name, |
|
|
ErrorCode | _errorCode ) |
Definition at line 41 of file SQLDriver.cpp.
42 : __name(_name), __errorCode(_errorCode)
43{
44}
◆ SQLDriverException() [3/3]
SQLDriverException::SQLDriverException |
( |
const String & | _name, |
|
|
ErrorCode | _errorCode, |
|
|
const String & | _driverSummary ) |
Definition at line 46 of file SQLDriver.cpp.
48 : __name(_name), __errorCode(_errorCode), __driverSummary(_driverSummary)
49{
50}
◆ toString()
String SQLDriverException::toString |
( |
| ) |
const |
|
virtual |
Reimplemented from Exception.
Definition at line 52 of file SQLDriver.cpp.
53{
54 StringBuilder
r = __name;
55
57
60 }
61 else {
62 switch (__errorCode) {
63 case eInvalidDriverModule:
64 r +=
__T(
"Invalid Driver Module");
65 break;
66 case eInvalidVersion:
67 r +=
__T(
"Invalid DCL_SQL_VERSION");
68 break;
69 case eInitializeFail:
70 r +=
__T(
"Initialize callback fail!");
71 break;
72 case eCleanupFail:
73 r +=
__T(
"cleanup callback falil");
74 break;
75 default:
77 }
78
79 if (!__driverSummary.isEmpty())
80 r +=
__T(
" :") + __driverSummary;
81 }
82
84}
#define __DCL_ASSERT(expr)
virtual String toString() const
const Exception * cause() const
The documentation for this class was generated from the following files: