X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fexceptions.cc;h=1ded4483485649d97e57200d549a45b20d144cf9;hb=f30ff718cbe924c8fcb6bf3a6a485271da85855d;hp=42c3ab19861a85841eec3261151a0e6593bbda09;hpb=d927e9b913606f4fc982885c7582ecaf0e3c5a1a;p=libdcp.git diff --git a/src/exceptions.cc b/src/exceptions.cc index 42c3ab19..1ded4483 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -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) +{ + +}