File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,18 @@ Author: Fotis Koutoulakis, fotis.koutoulakis@diffblue.com
1616// / Base class for exceptions thrown in the cprover project.
1717// / Intended to be used as a convenient way to have a
1818// / "catch all and report errors" from application entry points.
19+ // / Note that the reason we use a custom base class as opposed to
20+ // / std::exception or one of its derivates to avoid them being accidentally
21+ // / caught by code expecting standard exceptions to be only thrown by the
22+ // / standard library.
1923class cprover_exception_baset
2024{
2125public:
2226 // / A human readable description of what went wrong.
2327 // / For readability, implementors should not add a leading
2428 // / or trailing newline to this description.
2529 virtual std::string what () const = 0;
30+ virtual ~cprover_exception_baset () = default ;
2631};
2732
2833// / Thrown when users pass incorrect command line arguments,
You can’t perform that action at this time.
0 commit comments