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 a6d2e2a commit 96a2e44Copy full SHA for 96a2e44
src/util/exception_utils.h
@@ -33,4 +33,23 @@ class invalid_user_input_exceptiont
33
std::string what() const noexcept;
34
};
35
36
+class system_exceptiont
37
+{
38
+private:
39
+ std::string reason;
40
+
41
+public:
42
+ system_exceptiont(const std::string &reason) : reason(reason)
43
+ {
44
+ }
45
46
+ std::string what() const noexcept
47
48
+ std::string res;
49
+ res += "System Exception\n";
50
+ res += "Reason: " + reason + "\n";
51
+ return res;
52
53
+};
54
55
#endif // CPROVER_UTIL_EXCEPTION_UTILS_H
0 commit comments