Incomplete encryption of private keys.
[dcpomatic.git] / src / lib / exceptions.h
index 769857fd33d985ed12a37b8d5d018b14fd659cfe..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.
  */
@@ -81,6 +89,14 @@ private:
        boost::filesystem::path _file;
 };
 
+class JoinError : public std::runtime_error
+{
+public:
+       explicit JoinError (std::string s)
+               : std::runtime_error (s)
+       {}
+};
+
 /** @class OpenFileError.
  *  @brief Indicates that some error occurred when trying to open a file.
  */