summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-18 20:25:21 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-18 20:25:21 +0100
commit09d57c4e580533c959a0d0d07051f0aef9317628 (patch)
tree989ec43fe87fc8e3c4a13c0cf754a8a5a349c757 /src/exceptions.h
parentee05b1c06aa5305b5c97dc74dc8f253bab99a2ac (diff)
Throw a better error on bad content kind.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index 8bc6e550..d66e8944 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -136,6 +136,12 @@ public:
~MissingAssetError () throw () {}
};
+class BadContentKindError : public DCPReadError
+{
+public:
+ BadContentKindError (std::string content_kind);
+};
+
/** @class XMLError
* @brief An XML error
*/