From 0f9f004c50a8bea6b87d5a1636f95f67066e5187 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 17 Sep 2022 22:31:09 +0200 Subject: Give a better error if a specified CPL does not exist. --- src/lib/exceptions.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/exceptions.h') 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: -- cgit v1.2.3