summaryrefslogtreecommitdiff
path: root/src/include/parser_exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/parser_exception.h')
-rw-r--r--src/include/parser_exception.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/parser_exception.h b/src/include/parser_exception.h
new file mode 100644
index 000000000..8bad801f4
--- /dev/null
+++ b/src/include/parser_exception.h
@@ -0,0 +1,36 @@
+/********************* -*- C++ -*- */
+/** exception.h
+ ** This file is part of the CVC4 prototype.
+ **
+ ** Exception class.
+ **
+ ** The Analysis of Computer Systems Group (ACSys)
+ ** Courant Institute of Mathematical Sciences
+ ** New York University
+ **/
+
+#ifndef __CVC4_PARSER_EXCEPTION_H
+#define __CVC4_PARSER_EXCEPTION_H
+
+#include "exception.h"
+#include <string>
+#include <iostream>
+
+namespace CVC4 {
+
+ class ParserException: public Exception {
+ public:
+ // Constructors
+ ParserException() { }
+ ParserException(const std::string& msg): Exception(msg) { }
+ ParserException(const char* msg): Exception(msg) { }
+ // Destructor
+ virtual ~ParserException() { }
+ virtual std::string toString() const {
+ return "Parse Error: " + d_msg;
+ }
+ }; // end of class ParserException
+
+}/* CVC4 namespace */
+
+#endif /* __CVC4_PARSER_EXCEPTION_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback