File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include " exception_utils.h"
10
10
11
+ #include < utility>
12
+
11
13
std::string invalid_user_input_exceptiont::what () const noexcept
12
14
{
13
15
std::string res;
@@ -18,3 +20,11 @@ std::string invalid_user_input_exceptiont::what() const noexcept
18
20
res += correct_input + " \n " ;
19
21
return res;
20
22
}
23
+
24
+ deserialization_exceptiont::deserialization_exceptiont (std::string message)
25
+ : message(std::move(message))
26
+ {}
27
+
28
+ std::string deserialization_exceptiont::what () const noexcept {
29
+ return message;
30
+ }
Original file line number Diff line number Diff line change @@ -52,4 +52,13 @@ class system_exceptiont
52
52
}
53
53
};
54
54
55
+ class deserialization_exceptiont
56
+ {
57
+ public:
58
+ explicit deserialization_exceptiont (std::string message);
59
+ std::string what () const noexcept ;
60
+ private:
61
+ std::string message;
62
+ };
63
+
55
64
#endif // CPROVER_UTIL_EXCEPTION_UTILS_H
You can’t perform that action at this time.
0 commit comments