From 4dbc6ef917aeceb906b1ef1caf6911033e7e2c54 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Dec 2014 23:37:57 +0000 Subject: Hand-apply d849d411cff28ef5453085791d0b4d7cd73bd070 from master; replace all assert()s with thrown exceptions. --- src/lib/exceptions.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/exceptions.h') diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 05c66df3a..950c2f381 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -259,6 +259,12 @@ public: InvalidSignerError (); }; +class ProgrammingError : public StringError +{ +public: + ProgrammingError (std::string file, int line); +}; + /** @class ExceptionStore * @brief A parent class for classes which have a need to catch and * re-throw exceptions. -- cgit v1.2.3