File tree 2 files changed +27
-4
lines changed
2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,28 @@ incorrect_goto_program_exceptiont::incorrect_goto_program_exceptiont(
60
60
{
61
61
}
62
62
63
+ std::string incorrect_goto_program_exceptiont::what () const
64
+ {
65
+ return message + " (at: " + source_location.as_string () + " )" ;
66
+ }
67
+
63
68
unsupported_operation_exceptiont::unsupported_operation_exceptiont (
64
69
std::string message)
65
70
: message(std::move(message))
66
71
{
67
72
}
68
73
69
- std::string incorrect_goto_program_exceptiont ::what () const
74
+ std::string unsupported_operation_exceptiont ::what () const
70
75
{
71
- return message + " (at: " + source_location. as_string () + " ) " ;
76
+ return message;
72
77
}
73
78
74
- std::string unsupported_operation_exceptiont::what () const
79
+ analysis_exceptiont::analysis_exceptiont (std::string reason)
80
+ : reason(std::move(reason))
75
81
{
76
- return message;
82
+ }
83
+
84
+ std::string analysis_exceptiont::what () const
85
+ {
86
+ return reason;
77
87
}
Original file line number Diff line number Diff line change @@ -107,4 +107,17 @@ class unsupported_operation_exceptiont : public cprover_exception_baset
107
107
std::string message;
108
108
};
109
109
110
+ // / Thrown when an unexpected error occurs during the analysis (e.g., when the
111
+ // / SAT solver returns an error)
112
+ class analysis_exceptiont : public cprover_exception_baset
113
+ {
114
+ public:
115
+ explicit analysis_exceptiont (std::string reason);
116
+ std::string what () const override ;
117
+
118
+ private:
119
+ // / The reason this exception was generated.
120
+ std::string reason;
121
+ };
122
+
110
123
#endif // CPROVER_UTIL_EXCEPTION_UTILS_H
You can’t perform that action at this time.
0 commit comments