X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=fe87ababcad292335b52ed07d0328c19484420bb;hb=5ab0c3bc04e4aa5acd883bb8126fc6b185c6c5d6;hp=09db968dc949cbf6973dc8345c284d4c591296c8;hpb=3316bdc92365f6469f4df865ab661d15c292c641;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 09db968dc..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. */ @@ -255,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: