X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=fe87ababcad292335b52ed07d0328c19484420bb;hb=5ab0c3bc04e4aa5acd883bb8126fc6b185c6c5d6;hp=769857fd33d985ed12a37b8d5d018b14fd659cfe;hpb=bd5e8b83a3a18787241982efdae809d4db21f65d;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 769857fd3..fe87ababc 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -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. */