summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
commit9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028 (patch)
treef9536d691ef7c5abea82349a0b58a5f5e3cf8e33 /src/error.h
parent944e580825f0d9ce060b6dcdffe8990b6c2cca20 (diff)
downloadfork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.gz
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.bz2
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.zip
Started writing Python unit tests
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
index 7630f017..86d9de76 100644
--- a/src/error.h
+++ b/src/error.h
@@ -101,6 +101,12 @@ string source_context(const path& file,
virtual ~name() throw() {} \
}
+struct error_count {
+ std::size_t count;
+ explicit error_count(std::size_t _count) : count(_count) {}
+ const char * what() const { return ""; }
+};
+
} // namespace ledger
#endif // _ERROR_H