1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
--- lib/opendbx/api.orig 2010-08-01 02:08:41 UTC
+++ lib/opendbx/api
@@ -265,7 +265,7 @@ namespace OpenDBX
* @return Lob instance
* @throws std::exception If an error occures
*/
- Lob( Lob_Iface* impl ) throw( std::exception );
+ Lob( Lob_Iface* impl ) noexcept(false);
public:
@@ -319,7 +319,7 @@ namespace OpenDBX
*
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void close() throw( std::exception );
+ void close() noexcept(false);
/**
* Reads content from large object into the buffer.
@@ -344,7 +344,7 @@ namespace OpenDBX
* @return Number of bytes written into the buffer
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- ssize_t read( void* buffer, size_t buflen ) throw( std::exception );
+ ssize_t read( void* buffer, size_t buflen ) noexcept(false);
/**
* Writes data from the buffer into the large object.
@@ -368,7 +368,7 @@ namespace OpenDBX
* @return Number of bytes written into the large object
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- ssize_t write( void* buffer, size_t buflen ) throw( std::exception );
+ ssize_t write( void* buffer, size_t buflen ) noexcept(false);
};
@@ -417,7 +417,7 @@ namespace OpenDBX
* @throws std::exception If an error occures
* @return Result instance
*/
- Result( Result_Iface* impl ) throw( std::exception );
+ Result( Result_Iface* impl ) noexcept(false);
public:
@@ -470,7 +470,7 @@ namespace OpenDBX
*
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void finish() throw( std::exception );
+ void finish() noexcept(false);
/**
* Fetches one result set from the database server.
@@ -511,7 +511,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see odbxres
*/
- odbxres getResult( struct timeval* timeout = NULL, unsigned long chunk = 0 ) throw( std::exception );
+ odbxres getResult( struct timeval* timeout = NULL, unsigned long chunk = 0 ) noexcept(false);
/**
* Makes data of next row available.
@@ -529,7 +529,7 @@ namespace OpenDBX
* @return Status of the attempt to fetch one more row
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- odbxrow getRow() throw( std::exception );
+ odbxrow getRow() noexcept(false);
/**
* Returns the number of rows affected by DELETE, INSERT of UPDATE statements.
@@ -545,7 +545,7 @@ namespace OpenDBX
* @return Number of rows touched
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- uint64_t rowsAffected() throw( std::exception );
+ uint64_t rowsAffected() noexcept(false);
/**
* Returns the number of columns available in this result set.
@@ -559,7 +559,7 @@ namespace OpenDBX
* @return Number of columns
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- unsigned long columnCount() throw( std::exception );
+ unsigned long columnCount() noexcept(false);
/**
* Maps the column name to the column number required by other methods.
@@ -572,7 +572,7 @@ namespace OpenDBX
* @return Position of column in result set
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- unsigned long columnPos( const string& name ) throw( std::exception );
+ unsigned long columnPos( const string& name ) noexcept(false);
/**
* Returns the name of the column in the current result set.
@@ -586,7 +586,7 @@ namespace OpenDBX
* @return Column name
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- const string columnName( unsigned long pos ) throw( std::exception );
+ const string columnName( unsigned long pos ) noexcept(false);
/**
* Returns the type of the column in the current result set.
@@ -643,7 +643,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see odbxtype
*/
- odbxtype columnType( unsigned long pos ) throw( std::exception );
+ odbxtype columnType( unsigned long pos ) noexcept(false);
/**
* Returns the size of the content in the current row at the specified postion.
@@ -656,7 +656,7 @@ namespace OpenDBX
* @return Size of the data in bytes
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- unsigned long fieldLength( unsigned long pos ) throw( std::exception );
+ unsigned long fieldLength( unsigned long pos ) noexcept(false);
/**
* Returns a pointer to the content in the current row at the specified postion.
@@ -675,7 +675,7 @@ namespace OpenDBX
* @return Pointer to the data
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- const char* fieldValue( unsigned long pos ) throw( std::exception );
+ const char* fieldValue( unsigned long pos ) noexcept(false);
/**
* Creates a large object instance if supported by the database.
@@ -696,7 +696,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see Lob
*/
- Lob getLob( const char* value ) throw( std::exception );
+ Lob getLob( const char* value ) noexcept(false);
};
@@ -745,7 +745,7 @@ namespace OpenDBX
* @throws std::exception If an error occures
* @return Statement instance
*/
- Stmt( Stmt_Iface* impl ) throw( std::exception );
+ Stmt( Stmt_Iface* impl ) noexcept(false);
public:
@@ -808,7 +808,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see Result
*/
- Result execute() throw( std::exception );
+ Result execute() noexcept(false);
};
@@ -894,7 +894,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see #Conn( const string&, const string&, const string& )
*/
- Conn( const char* backend, const char* host = "", const char* port = "" ) throw( std::exception );
+ Conn( const char* backend, const char* host = "", const char* port = "" ) noexcept(false);
/**
* Creates a connection object using C++ style string parameters.
@@ -936,7 +936,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see #Conn( const char*, const char*, const char* )
*/
- Conn( const string& backend, const string& host = "", const string& port = "" ) throw( std::exception );
+ Conn( const string& backend, const string& host = "", const string& port = "" ) noexcept(false);
/**
* Destroys the connection instance if no other references exist.
@@ -1009,7 +1009,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void bind( const char* database, const char* who = "", const char* cred = "", odbxbind method = ODBX_BIND_SIMPLE ) throw( std::exception );
+ void bind( const char* database, const char* who = "", const char* cred = "", odbxbind method = ODBX_BIND_SIMPLE ) noexcept(false);
/**
* Authenticates the user and selects the database using C++ style string
@@ -1045,7 +1045,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void bind( const string& database, const string& who = "", const string& cred = "", odbxbind method = ODBX_BIND_SIMPLE ) throw( std::exception );
+ void bind( const string& database, const string& who = "", const string& cred = "", odbxbind method = ODBX_BIND_SIMPLE ) noexcept(false);
/**
* Releases the connection to the database and resets the authentication
@@ -1054,7 +1054,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void unbind() throw( std::exception );
+ void unbind() noexcept(false);
/**
* Cleans up the connection object.
@@ -1062,7 +1062,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void finish() throw( std::exception );
+ void finish() noexcept(false);
/**
* Tests if the database driver module does understand certain extensions.
@@ -1098,7 +1098,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- bool getCapability( odbxcap cap ) throw( std::exception );
+ bool getCapability( odbxcap cap ) noexcept(false);
/**
* Gets the value of a certain option provided by the database driver module.
@@ -1155,7 +1155,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void getOption( odbxopt option, void* value ) throw( std::exception );
+ void getOption( odbxopt option, void* value ) noexcept(false);
/**
* Sets a certain option provided by the database driver module.
@@ -1210,7 +1210,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- void setOption( odbxopt option, void* value ) throw( std::exception );
+ void setOption( odbxopt option, void* value ) noexcept(false);
/**
* Escapes potentially dangerous characters in user input using a C style buffer.
@@ -1244,7 +1244,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- string& escape( const char* from, unsigned long fromlen, string& to ) throw( std::exception );
+ string& escape( const char* from, unsigned long fromlen, string& to ) noexcept(false);
/**
* Escapes potentially dangerous characters in user input using a C++
@@ -1278,7 +1278,7 @@ namespace OpenDBX
* @throws std::invalid_argument If the object was only initialized by the default constructor
* @throws OpenDBX::Exception If the underlying database library returns an error
*/
- string& escape( const string& from, string& to ) throw( std::exception );
+ string& escape( const string& from, string& to ) noexcept(false);
/**
* Creates a statement object from a SQL text string using a C style buffer.
@@ -1327,7 +1327,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see Stmt
*/
- Stmt create( const char* sql, unsigned long size = 0, Stmt::Type type = Stmt::Simple ) throw( std::exception );
+ Stmt create( const char* sql, unsigned long size = 0, Stmt::Type type = Stmt::Simple ) noexcept(false);
/**
* Creates a statement object from a SQL text string using a C++ string.
@@ -1368,7 +1368,7 @@ namespace OpenDBX
* @throws OpenDBX::Exception If the underlying database library returns an error
* @see Stmt
*/
- Stmt create( const string& sql, Stmt::Type type = Stmt::Simple ) throw( std::exception );
+ Stmt create( const string& sql, Stmt::Type type = Stmt::Simple ) noexcept(false);
};
|