summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-08 23:00:53 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:29 -0400
commit47e2a341764b1747a0b010b3304233f7643f2a70 (patch)
tree593daa0b64c83657dc0d5e2dfcea9b78e37ca0c2 /parser.h
parentf1d5716b95e770b53a43a5794782a34c78f0ae9f (diff)
downloadfork-ledger-47e2a341764b1747a0b010b3304233f7643f2a70.tar.gz
fork-ledger-47e2a341764b1747a0b010b3304233f7643f2a70.tar.bz2
fork-ledger-47e2a341764b1747a0b010b3304233f7643f2a70.zip
*** empty log message ***
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