diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-05 00:51:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-05 00:51:29 +0200 |
| commit | da908d815787cd0272c8bdeef40e1a4d2f6a29f8 (patch) | |
| tree | 9ac2e4c326f3b4fc9cf6feb11a36970aeb8b1fad /src/lib/exceptions.h | |
| parent | f02a6f52ec33a4dc6f8f8b6bce9445dcd32fa11a (diff) | |
Fix confusing error on trying to load a DoM project into the player (#1948).
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 05cda9659..c64f561a8 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -266,6 +266,21 @@ public: {} }; + +/** @class ProjectFolderError + * @brief An attempt has been made to read a DCP from a directory, but it looks + * like the directory actually contains a DCP-o-matic project. + */ +class ProjectFolderError : public DCPError +{ +public: + /* Code which catches this exception will provide their own message */ + ProjectFolderError () + : DCPError ("dummy") + {} +}; + + class InvalidSignerError : public std::runtime_error { public: |
