We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29be3b3 commit 8918ce9Copy full SHA for 8918ce9
src/util/exception_utils.h
@@ -38,4 +38,23 @@ class invalid_user_input_exceptiont
38
}
39
};
40
41
+class system_exceptiont
42
+{
43
+private:
44
+ std::string reason;
45
+
46
+public:
47
+ system_exceptiont(const std::string &reason) : reason(reason)
48
+ {
49
+ }
50
51
+ std::string what() const noexcept
52
53
+ std::string res;
54
+ res += "System Exception\n";
55
+ res += "Reason: " + reason + "\n";
56
+ return res;
57
58
+};
59
60
#endif // CPROVER_UTIL_EXCEPTION_UTILS_H
0 commit comments