diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-14 20:16:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-14 20:16:44 +0200 |
| commit | 4d6c8aaf0167cde3bb63e9014604243bdc47b1a1 (patch) | |
| tree | 13aae09fb07326febeb401930718692b45df2cff /src/dcp.cc | |
| parent | 314060f975dc9806f49ec8bbb1c11041a2ac111f (diff) | |
s/DCPReadError/ReadError/g
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -117,7 +117,7 @@ DCP::read (list<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf } else if (boost::filesystem::exists (_directory / "ASSETMAP.xml")) { _asset_map = _directory / "ASSETMAP.xml"; } else { - boost::throw_exception (DCPReadError (String::compose ("could not find ASSETMAP nor ASSETMAP.xml in `%1'", _directory.string()))); + boost::throw_exception (ReadError (String::compose ("could not find ASSETMAP nor ASSETMAP.xml in `%1'", _directory.string()))); } cxml::Document asset_map ("AssetMap"); @@ -221,7 +221,7 @@ DCP::read (list<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf p->parse_file (path.string()); } catch (std::exception& e) { delete p; - throw DCPReadError(String::compose("XML error in %1", path.string()), e.what()); + throw ReadError(String::compose("XML error in %1", path.string()), e.what()); } string const root = p->get_document()->get_root_node()->get_name (); @@ -252,7 +252,7 @@ DCP::read (list<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf } else if (*pkl_type == "image/png") { /* It's an Interop PNG subtitle; let it go */ } else { - throw DCPReadError (String::compose("Unknown asset type %1 in PKL", *pkl_type)); + throw ReadError (String::compose("Unknown asset type %1 in PKL", *pkl_type)); } } |
