diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-29 19:17:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-29 19:17:24 +0100 |
| commit | 91563c058a8d2207437a482d4cc63c5a166a26f4 (patch) | |
| tree | 599a0bc2d337dc7d06912163571fd0abdcc29cd6 /src/exceptions.h | |
| parent | d8cf96d56de7b5a72471762ab5f1e35e816f6252 (diff) | |
| parent | 5e4c87ae58f1ed73b9ef19cd75210963599fa546 (diff) | |
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index 9b2617ee..e613c980 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -29,6 +29,9 @@ namespace dcp { +/** @class StringError + * @brief An exception that uses a std::string to store its error message. + */ class StringError : public std::exception { public: @@ -159,13 +162,20 @@ public: TimeFormatError (std::string bad_time); }; +/** @class NotEncryptedError + * @brief An error raised when creating a DecryptedKDM object for assets that are not + * encrypted. + */ class NotEncryptedError : public StringError { public: NotEncryptedError (std::string const & what); ~NotEncryptedError () throw () {} }; - + +/** @class ProgrammingError + * @brief An exception thrown when a DCP_ASSERT fails; something that should not happen. + */ class ProgrammingError : public StringError { public: |
