summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-07 19:35:42 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-07 19:35:42 +0100
commit5c9e39df078aab9f03ae186d0758d4d710f90bab (patch)
tree24ba2ec0e0d1e0f55411efed26396ad93f6879a0 /src/lib/exceptions.cc
parent173fc4c4ca837cbea881efc361604b82806a1807 (diff)
Give better errors when incorrect KDMs are used (#1326).
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 43a8f3b86..481d2e89d 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -89,4 +89,14 @@ ProgrammingError::ProgrammingError (string file, int line, string message)
KDMAsContentError::KDMAsContentError ()
: runtime_error (_("This file is a KDM. KDMs should be added to DCP content by right-clicking the content and choosing \"Add KDM\"."))
-{}
+{
+
+}
+
+KDMError::KDMError (string s, string d)
+ : runtime_error (String::compose ("%1 (%2)", s, d))
+ , _summary (s)
+ , _detail (d)
+{
+
+}