File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,6 @@ namespace sqlite {
88
88
else if (error_code == SQLITE_NOTADB) throw exceptions::notadb (sqlite3_errstr (error_code));
89
89
else throw sqlite_exception (sqlite3_errstr (error_code));
90
90
}
91
-
92
- static void throw_custom_error (const char * str) {
93
- throw std::runtime_error (str);
94
- }
95
-
96
91
}
97
92
98
93
class database ;
@@ -174,11 +169,11 @@ namespace sqlite {
174
169
if ((hresult = sqlite3_step (_stmt.get ())) == SQLITE_ROW) {
175
170
call_back ();
176
171
} else if (hresult == SQLITE_DONE) {
177
- exceptions::throw_custom_error (" no rows to extract: exactly 1 row expected" );
172
+ throw exceptions::no_rows (" no rows to extract: exactly 1 row expected" );
178
173
}
179
174
180
175
if ((hresult = sqlite3_step (_stmt.get ())) == SQLITE_ROW) {
181
- exceptions::throw_custom_error (" not all rows extracted" );
176
+ throw exceptions::more_rows (" not all rows extracted" );
182
177
}
183
178
184
179
if (hresult != SQLITE_DONE) {
You can’t perform that action at this time.
0 commit comments