class NetworkError : public std::runtime_error
{
public:
- explicit NetworkError (std::string s)
- : std::runtime_error (s)
- {}
+ explicit NetworkError (std::string s, boost::optional<std::string> d = boost::optional<std::string>());
+
+ std::string summary () const {
+ return _summary;
+ }
+
+ boost::optional<std::string> detail () const {
+ return _detail;
+ }
+
+private:
+ std::string _summary;
+ boost::optional<std::string> _detail;
};
};
+class CPLNotFoundError : public DCPError
+{
+public:
+ CPLNotFoundError(std::string id)
+ : DCPError(String::compose("CPL %1 not found", id))
+ {}
+};
+
+
class InvalidSignerError : public std::runtime_error
{
public:
/** @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
{