diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-12 14:51:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-28 19:47:28 +0100 |
| commit | af42e5d4cb0a4a22dba645c16e7c0d3de4648290 (patch) | |
| tree | a04f754f2d038db5303ffd1f9c9036fc7a0f51c0 /src/lib/exceptions.h | |
| parent | adddda49c17e87198253d9c900dcef0f5fb2e175 (diff) | |
Add dist tool.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 73b8cc85a..0f8a2eda2 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -314,5 +314,47 @@ public: GLError (char const * last, int e); }; +/** @class CopyError + * @brief An error which occurs when copying a DCP to a distribution drive. + */ +class CopyError : public std::runtime_error +{ +public: + CopyError (std::string s, int n); + virtual ~CopyError () throw () {} + + std::string message () const { + return _message; + } + + int number () const { + return _number; + } + +private: + std::string _message; + int _number; +}; +/** @class VerifyError + * @brief An error which occurs when verifying a DCP that we copied to a distribution drive. + */ +class VerifyError : public std::runtime_error +{ +public: + VerifyError (std::string s, int n); + virtual ~VerifyError () throw () {} + + std::string message () const { + return _message; + } + + int number () const { + return _number; + } + +private: + std::string _message; + int _number; +}; #endif |
