@@ -13,29 +13,26 @@ namespace dut {
1313struct failure : public std ::exception {
1414 std::string errstr;
1515 std::string sqlstate;
16- const char * what () const throw()
16+ const char * what () const noexcept override
1717 {
1818 return errstr.c_str ();
1919 }
20- failure (const char *s, const char *sqlstate_ = " " ) throw ()
21- : errstr(), sqlstate() {
22- errstr = s;
23- sqlstate = sqlstate_;
24- };
20+ failure (const char *s, const char *sqlstate_ = " " )
21+ : errstr(s), sqlstate(sqlstate_) { }
2522};
2623
2724struct broken : failure {
28- broken (const char *s, const char *sqlstate_ = " " ) throw ()
25+ broken (const char *s, const char *sqlstate_ = " " )
2926 : failure(s, sqlstate_) { }
3027};
3128
3229struct timeout : failure {
33- timeout (const char *s, const char *sqlstate_ = " " ) throw ()
30+ timeout (const char *s, const char *sqlstate_ = " " )
3431 : failure(s, sqlstate_) { }
3532};
3633
3734struct syntax : failure {
38- syntax (const char *s, const char *sqlstate_ = " " ) throw ()
35+ syntax (const char *s, const char *sqlstate_ = " " )
3936 : failure(s, sqlstate_) { }
4037};
4138
0 commit comments