More player debugging for butler video-full states.
[dcpomatic.git] / src / lib / exceptions.cc
index 4e1e1ade3b8e5a1b9da47aa7cb1523ac67472b56..481d2e89dd668fd82b7e78c5651a0df1a2482e84 100644 (file)
@@ -52,7 +52,7 @@ WriteFileError::WriteFileError (boost::filesystem::path f, int e)
 }
 
 MissingSettingError::MissingSettingError (string s)
-       : SettingError (s, String::compose (_("missing required setting %1"), s))
+       : SettingError (s, String::compose (_("Missing required setting %1"), s))
 {
 
 }
@@ -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)
+{
+
+}