summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
committerCarl Hetherington <cth@carlh.net>2014-03-19 21:46:01 +0000
commit7702e5d643440e75369078863b34f8a574ee4143 (patch)
treee01edc51718fd6c475b449748ff7fa6e5c526bc9 /src/exceptions.h
parentc91aa27e13703874c944fed763b5b039ceae71d2 (diff)
Considerable re-work of KDM class to express the difference between encrypted and unencrypted KDMs.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index bc5e83d1..7446e352 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -146,7 +146,25 @@ public:
private:
std::string _message;
};
-
+
+/** @class TimeFormatError
+ * @brief A an error with a string passed to LocalTime.
+ */
+class TimeFormatError : public std::exception
+{
+public:
+ TimeFormatError (std::string bad_time);
+ ~TimeFormatError () throw () {}
+
+ /** @return error message */
+ char const * what () const throw () {
+ return _message.c_str ();
+ }
+
+private:
+ std::string _message;
+};
+
}
#endif