MCPcopy Create free account
hub / github.com/anse1/sqlsmith / failure

Class failure

dut.hh:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace dut {
12
13struct failure : public std::exception {
14 std::string errstr;
15 std::string sqlstate;
16 const char* what() const throw()
17 {
18 return errstr.c_str();
19 }
20 failure(const char *s, const char *sqlstate_ = "") throw()
21 : errstr(), sqlstate() {
22 errstr = s;
23 sqlstate = sqlstate_;
24 };
25};
26
27struct broken : failure {
28 broken(const char *s, const char *sqlstate_ = "") throw()

Callers 4

testMethod · 0.85
commandMethod · 0.85
testMethod · 0.85
testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected