diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:31:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:31:09 +0200 |
| commit | 0f9f004c50a8bea6b87d5a1636f95f67066e5187 (patch) | |
| tree | 3c6c0f851b492704a580c2a87b8f3738bdd724cc /src/lib/exceptions.h | |
| parent | dba3b79e848c70e405e41744c40b416014e86eb8 (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.h | 9 |
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: |
