Missing initialisattion of DCPReadError::_message.
[libdcp.git] / src / exceptions.cc
index 42c3ab19861a85841eec3261151a0e6593bbda09..1ded4483485649d97e57200d549a45b20d144cf9 100644 (file)
@@ -90,3 +90,29 @@ MismatchedStandardError::MismatchedStandardError ()
 {
 
 }
+
+KDMDecryptionError::KDMDecryptionError (std::string message, int cipher_length, int modulus_dmax)
+       : runtime_error (String::compose ("Could not decrypt KDM (%1) (%2/%3)", message, cipher_length, modulus_dmax))
+{
+
+}
+
+KDMFormatError::KDMFormatError (std::string message)
+       : runtime_error (String::compose ("Could not parse KDM (%1)", message))
+{
+
+}
+
+CertificateChainError::CertificateChainError (std::string message)
+       : runtime_error (message)
+{
+
+}
+
+DCPReadError::DCPReadError (string message, string detail)
+       : runtime_error(String::compose("%1 (%2)", message, detail))
+       , _message(message)
+       , _detail(detail)
+{
+
+}