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:37:47 +0100
commit5e4c87ae58f1ed73b9ef19cd75210963599fa546 (patch)
treecb32d184e84633d8b6e3d077fa2a80a4a259ce19 /src/exceptions.h
parentcfce3d57883e8d6ceeb869fd208230fbfbbd98d9 (diff)
Some comments.
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: