We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7228c28 commit f29ca0cCopy full SHA for f29ca0c
src/util/error.h
@@ -0,0 +1,37 @@
1
+/*******************************************************************\
2
+
3
+Module:
4
5
+Author: Daniel Kroening, [email protected]
6
7
+\*******************************************************************/
8
9
+#ifndef CPROVER_ERROR_H
10
+#define CPROVER_ERROR_H
11
12
+#include <exception>
13
+#include <sstream>
14
15
+#include "location.h"
16
17
+class error_baset:public exception
18
+{
19
+public:
20
+ virtual const char* what() const throw()
21
+ {
22
+ return "";
23
+ }
24
25
+ locationt location;
26
+};
27
28
+class error:public error_baset, public std::ostringstream
29
30
31
32
33
+ return str().c_str();
34
35
36
37
+#endif
0 commit comments