diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-15 23:16:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-15 23:16:00 +0000 |
| commit | 318ed7eb3472cab3f05c7bc067126ca367db75d4 (patch) | |
| tree | fbb7a6e541465c9d2a83e75c7859d09b5247ef00 /src/exceptions.cc | |
| parent | 73e2962cef1a003e26e7cc88df032743b3a83e46 (diff) | |
Check that all image data is present after loading a SMPTE subtitle asset.
If we load SMPTE subtitles from a XML file try to load PNG data
from the same directory; this feels like a hack.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index e9cdcef1..7516d085 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -110,7 +110,7 @@ KDMFormatError::KDMFormatError (std::string message) } -CertificateChainError::CertificateChainError (std::string message) +CertificateChainError::CertificateChainError (string message) : runtime_error (message) { @@ -123,3 +123,9 @@ DCPReadError::DCPReadError (string message, string detail) { } + +MissingSubtitleImageError::MissingSubtitleImageError (string id) + : runtime_error (String::compose("Could not load image for subtitle %1", id)) +{ + +} |
