We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d95b5a commit 4fcb065Copy full SHA for 4fcb065
include/Exception.hpp
@@ -28,8 +28,6 @@
28
#include <exception>
29
#include <sstream>
30
31
-
32
33
namespace voltdb {
34
using std::ostringstream;
35
@@ -67,8 +65,10 @@ class Exception : public std::exception {
67
65
virtual const char* what() const throw() {
68
66
return "An unknown error occured in the VoltDB client API";
69
}
+ const int getErrorCode() const { return m_errorCode; }
70
protected:
71
Exception(nativeErrorCode errCode) : m_errorCode(errCode){};
+private:
72
nativeErrorCode m_errorCode; // needed for ODBC driver
73
};
74
0 commit comments