diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-06 10:47:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-22 01:21:00 +0100 |
| commit | 30dfa051113792305f9704d5a76ffaf57c21063d (patch) | |
| tree | 4a4055b40bfb64ebf5b7509ef81a104db4a52e46 /src/exceptions.cc | |
| parent | 9cb23adda9ebe6a76992b68db78ccb638348dac1 (diff) | |
Use VerificationNote for non-fatal errors in DCP::read.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index 19422090..a49c7004 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -62,17 +62,6 @@ TimeFormatError::TimeFormatError (string bad_time) } -MissingAssetError::MissingAssetError (boost::filesystem::path path, AssetType type) - : DCPReadError ( - type == MAIN_PICTURE ? String::compose ("Missing asset %1 for main picture", path.filename().string()) : - (type == MAIN_SOUND ? String::compose ("Missing asset %1 for main sound", path.filename().string()) : - (type == MAIN_SUBTITLE ? String::compose ("Missing asset %1 for main subtitle", path.filename().string()) : - String::compose ("Missing asset %1", path.filename().string())))) - , _path (path) -{ - -} - BadContentKindError::BadContentKindError (string content_kind) : DCPReadError (String::compose("Bad content kind '%1'", content_kind)) { @@ -92,12 +81,6 @@ ProgrammingError::ProgrammingError (string file, int line) } -MismatchedStandardError::MismatchedStandardError () - : DCPReadError ("DCP contains both Interop and SMPTE parts") -{ - -} - 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)) { @@ -130,15 +113,6 @@ MissingSubtitleImageError::MissingSubtitleImageError (string id) } -/** The <Path> in the ASSETMAP is empty for asset. I can't see how this is valid, - but it's been seen in the wild with a DCP that claims to come from ClipsterDCI 5.10.0.5. - */ -EmptyAssetPathError::EmptyAssetPathError (string id) - : DCPReadError (String::compose("Asset map path is empty for asset %1", id)) -{ - -} - BadKDMDateError::BadKDMDateError (bool starts_too_early) : runtime_error ( starts_too_early ? |
