Incomplete encryption of private keys.
[dcpomatic.git] / src / lib / exceptions.h
index 7220af35f5ba0d8c4603e0340d9324e74cf0812b..fe87ababcad292335b52ed07d0328c19484420bb 100644 (file)
@@ -44,6 +44,14 @@ public:
        {}
 };
 
+class CryptoError : public std::runtime_error
+{
+public:
+       explicit CryptoError (std::string s)
+               : std::runtime_error (s)
+       {}
+};
+
 /** @class EncodeError
  *  @brief A low-level problem with an encoder.
  */
@@ -193,6 +201,7 @@ class KDMError : public std::runtime_error
 {
 public:
        KDMError (std::string s, std::string d);
+       ~KDMError () throw() {}
 
        std::string summary () const {
                return _summary;
@@ -254,6 +263,14 @@ public:
        {}
 };
 
+class MetadataError : public std::runtime_error
+{
+public:
+       explicit MetadataError (std::string s)
+               : std::runtime_error (s)
+       {}
+};
+
 class OldFormatError : public std::runtime_error
 {
 public: