summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-17 22:31:09 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-17 22:31:09 +0200
commit0f9f004c50a8bea6b87d5a1636f95f67066e5187 (patch)
tree3c6c0f851b492704a580c2a87b8f3738bdd724cc /src/lib/exceptions.h
parentdba3b79e848c70e405e41744c40b416014e86eb8 (diff)
Give a better error if a specified CPL does not exist.
Diffstat (limited to 'src/lib/exceptions.h')
-rw-r--r--src/lib/exceptions.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 7c9509800..618a03f43 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: