File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 16
16
// / Base class for exceptions thrown in the cprover project.
17
17
// / Intended to be used as a convenient way to have a
18
18
// / "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.
19
23
class cprover_exception_baset
20
24
{
21
25
public:
22
26
// / A human readable description of what went wrong.
23
27
// / For readability, implementors should not add a leading
24
28
// / or trailing newline to this description.
25
29
virtual std::string what () const = 0;
30
+ virtual ~cprover_exception_baset () = default ;
26
31
};
27
32
28
33
// / Thrown when users pass incorrect command line arguments,
You can’t perform that action at this time.
0 commit comments