diff options
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 |
