Give a better error if a specified CPL does not exist.
[dcpomatic.git] / src / lib / exceptions.h
index 7c9509800ed3a40bf35f2cd88ce45755c44a03f8..618a03f4326510c8e532481ce899a7fb1dfcf18e 100644 (file)
@@ -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: