From 7702e5d643440e75369078863b34f8a574ee4143 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 19 Mar 2014 21:46:01 +0000 Subject: Considerable re-work of KDM class to express the difference between encrypted and unencrypted KDMs. --- src/exceptions.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/exceptions.h') 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 -- cgit v1.2.3