Support CPL metadata.
[libdcp.git] / src / exceptions.cc
index 7f389f312ee4d5e93420e94d5532498d63271a08..16676e20f70ac6560096a4c74ed1aeb489158026 100644 (file)
@@ -64,7 +64,7 @@ TimeFormatError::TimeFormatError (string bad_time)
 }
 
 BadContentKindError::BadContentKindError (string content_kind)
-       : DCPReadError (String::compose("Bad content kind '%1'", content_kind))
+       : ReadError (String::compose("Bad content kind '%1'", content_kind))
 {
 
 }
@@ -100,7 +100,7 @@ CertificateChainError::CertificateChainError (string message)
 
 }
 
-DCPReadError::DCPReadError (string message, string detail)
+ReadError::ReadError (string message, string detail)
        : runtime_error(String::compose("%1 (%2)", message, detail))
        , _message(message)
        , _detail(detail)
@@ -131,3 +131,36 @@ StartCompressionError::StartCompressionError (optional<int> code)
        , _code (code)
 {}
 
+
+
+CombineError::CombineError (string message)
+       : runtime_error (message)
+{}
+
+
+LanguageTagError::LanguageTagError (std::string message)
+       : runtime_error (message)
+{}
+
+
+BadSettingError::BadSettingError (std::string message)
+       : runtime_error (message)
+{
+
+}
+
+
+DuplicateIdError::DuplicateIdError (std::string message)
+       : runtime_error (message)
+{
+
+}
+
+
+MainSoundConfigurationError::MainSoundConfigurationError (std::string s)
+       : runtime_error (String::compose("Could not parse MainSoundConfiguration %1", s))
+{
+
+}
+
+>>>>>>> Support CPL metadata.