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