Give better errors when incorrect KDMs are used (#1326).
[dcpomatic.git] / src / lib / exceptions.h
index 5efb045b74906cdbb77e782d61023ba709c6c77d..7220af35f5ba0d8c4603e0340d9324e74cf0812b 100644 (file)
@@ -192,9 +192,19 @@ public:
 class KDMError : public std::runtime_error
 {
 public:
-       explicit KDMError (std::string s)
-               : std::runtime_error (s)
-       {}
+       KDMError (std::string s, std::string d);
+
+       std::string summary () const {
+               return _summary;
+       }
+
+       std::string detail () const {
+               return _detail;
+       }
+
+private:
+       std::string _summary;
+       std::string _detail;
 };
 
 /** @class PixelFormatError