X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=fe87ababcad292335b52ed07d0328c19484420bb;hp=eceafa10501d656a55ef78961590ecaff72108b7;hb=a5be11a965c2c38442e4e069874e7e21b5b43a5c;hpb=6199e090dc1e32d3753ba7e7d7ea8c5f0d79f046 diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index eceafa105..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. */