summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-29 10:36:56 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-29 10:36:56 +0100
commit804d2471943581ac3711cd99d9ded75ef650d038 (patch)
tree74a934e557a33d43e8118328ee568faf3dee17af /src/exceptions.h
parent73f9031ec4a6f37f98ce72fbf8abd48105b85cde (diff)
Some comments.1.0-new-asdcplib
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h12
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: