Considerable re-work of KDM class to express the difference between encrypted and...
[libdcp.git] / src / exceptions.h
index bc5e83d17e3855326799650ef31037aa3ea34715..7446e352522fefaee4bdd2a4f7de860b2b3696f2 100644 (file)
@@ -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