Improve an error message.
[dcpomatic.git] / src / lib / exceptions.h
index 75f4a8cd1bc01fbafa03851c664f268e8a433ccf..08cbcb1d66bf6a593be12c84af52fd2479b5816b 100644 (file)
@@ -167,7 +167,9 @@ public:
 class BadSettingError : public SettingError
 {
 public:
-       /** @param s Name of setting that is bad */
+       /** @param s Name of setting that is bad.
+        *  @param m Error message.
+        */
        BadSettingError (std::string s, std::string m)
                : SettingError (s, m)
        {}
@@ -225,12 +227,13 @@ class InvalidSignerError : public std::runtime_error
 {
 public:
        InvalidSignerError ();
+       InvalidSignerError (std::string reason);
 };
 
 class ProgrammingError : public std::runtime_error
 {
 public:
-       ProgrammingError (std::string file, int line);
+       ProgrammingError (std::string file, int line, std::string message = "");
 };
 
 class TextEncodingError : public std::runtime_error
@@ -241,4 +244,18 @@ public:
        {}
 };
 
+class OldFormatError : public std::runtime_error
+{
+public:
+       OldFormatError (std::string s)
+               : std::runtime_error (s)
+       {}
+};
+
+class KDMAsContentError : public std::runtime_error
+{
+public:
+       KDMAsContentError ();
+};
+
 #endif