Skip to content

Commit a0d1d30

Browse files
committed
claude attempt anse1#1
1 parent 198f13b commit a0d1d30

6 files changed

Lines changed: 1650 additions & 78 deletions

File tree

dut.hh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,26 @@ namespace dut {
1313
struct 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

2724
struct 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

3229
struct 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

3734
struct 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

Comments
 (0)