Give a better error if a specified CPL does not exist.
[dcpomatic.git] / src / lib / exceptions.h
index 2cae86accbbe4f823272a010544fb6cba5492051..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:
@@ -416,7 +425,7 @@ private:
 
 
 /** @class CommunicationFailedError
- *  @brief Communcation between dcpomatic2_disk and _disk_writer failed somehow.
+ *  @brief Communication between dcpomatic2_disk and _disk_writer failed somehow.
  */
 class CommunicationFailedError : public CopyError
 {