summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 396f0fe6..6178d293 100644
--- a/parser.h
+++ b/parser.h
@@ -4,6 +4,8 @@
#include <iostream>
#include <string>
+#include "error.h"
+
namespace ledger {
class account_t;
@@ -48,6 +50,13 @@ unsigned int parse_ledger_data(config_t& config,
void initialize_parser_support();
void shutdown_parser_support();
+class parse_error : public error {
+ public:
+ parse_error(const std::string& reason, error_context * ctxt = NULL) throw()
+ : error(reason, ctxt) {}
+ virtual ~parse_error() throw() {}
+};
+
} // namespace ledger
#endif // _PARSER_H