@@ -69,7 +69,7 @@ namespace sql
69
69
#pragma warning(push)
70
70
#pragma warning(disable: 4275)
71
71
#endif
72
- class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
72
+ class SQLException : public std ::runtime_error
73
73
{
74
74
#ifdef _WIN32
75
75
#pragma warning(pop)
@@ -115,32 +115,32 @@ class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error
115
115
MEMORY_ALLOC_OPERATORS (SQLException)
116
116
};
117
117
118
- struct CPPCONN_PUBLIC_FUNC MethodNotImplementedException : public SQLException
118
+ struct MethodNotImplementedException : public SQLException
119
119
{
120
120
MethodNotImplementedException (const MethodNotImplementedException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
121
121
MethodNotImplementedException (const std::string& reason) : SQLException(reason, " " , 0 ) {}
122
122
};
123
123
124
- struct CPPCONN_PUBLIC_FUNC InvalidArgumentException : public SQLException
124
+ struct InvalidArgumentException : public SQLException
125
125
{
126
126
InvalidArgumentException (const InvalidArgumentException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
127
127
InvalidArgumentException (const std::string& reason) : SQLException(reason, " " , 0 ) {}
128
128
};
129
129
130
- struct CPPCONN_PUBLIC_FUNC InvalidInstanceException : public SQLException
130
+ struct InvalidInstanceException : public SQLException
131
131
{
132
132
InvalidInstanceException (const InvalidInstanceException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
133
133
InvalidInstanceException (const std::string& reason) : SQLException(reason, " " , 0 ) {}
134
134
};
135
135
136
136
137
- struct CPPCONN_PUBLIC_FUNC NonScrollableException : public SQLException
137
+ struct NonScrollableException : public SQLException
138
138
{
139
139
NonScrollableException (const NonScrollableException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
140
140
NonScrollableException (const std::string& reason) : SQLException(reason, " " , 0 ) {}
141
141
};
142
142
143
- struct CPPCONN_PUBLIC_FUNC SQLUnsupportedOptionException : public SQLException
143
+ struct SQLUnsupportedOptionException : public SQLException
144
144
{
145
145
SQLUnsupportedOptionException (const SQLUnsupportedOptionException& e, const std::string conn_option) :
146
146
SQLException (e.what(), e.sql_state, e.errNo),
0 commit comments