Adapt for libdcp use of enum class.
[dcpomatic.git] / src / lib / exceptions.h
index 98534bb32d410db108c2d8bd8f00fe220822074f..05cda9659f2c63a5b104d6fccbe896e0294e4457 100644 (file)
@@ -369,4 +369,14 @@ private:
        std::string _message;
        int _number;
 };
+
+
+class PrivilegeError : public std::runtime_error
+{
+public:
+       explicit PrivilegeError (std::string s)
+                       : std::runtime_error (s)
+               {}
+};
+
 #endif