X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=ed002d0a9a1ea7856090be16c246490a2ad35b14;hb=8c867a69d4a93cf81b89a612764eb0be902b7407;hp=7c9509800ed3a40bf35f2cd88ce45755c44a03f8;hpb=c80f7a440de73dead499764b4073d39d54c68b9f;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 7c9509800..ed002d0a9 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -335,6 +335,15 @@ public: }; +class CPLNotFoundError : public DCPError +{ +public: + CPLNotFoundError(std::string id) + : DCPError(String::compose("CPL %1 not found", id)) + {} +}; + + class InvalidSignerError : public std::runtime_error { public: @@ -398,20 +407,25 @@ public: class CopyError : public std::runtime_error { public: - CopyError (std::string s, boost::optional n = boost::optional()); + CopyError (std::string s, boost::optional ext4_error = boost::optional(), boost::optional platform_error = boost::optional()); virtual ~CopyError () throw () {} std::string message () const { return _message; } - boost::optional number () const { - return _number; + boost::optional ext4_number() const { + return _ext4_number; + } + + boost::optional platform_number() const { + return _platform_number; } private: std::string _message; - boost::optional _number; + boost::optional _ext4_number; + boost::optional _platform_number; };