diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
| commit | e0adfd85dd7987ee2b77eea7f6d3c13885729a38 (patch) | |
| tree | 924ed417edc2c7c579a58c868d8370f3346008d9 /src/lib/dcp_examiner.cc | |
| parent | 4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff) | |
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index fe2660d48..22b10ab84 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -39,6 +39,7 @@ using std::list; using std::cout; +using std::runtime_error; using boost::shared_ptr; using boost::dynamic_pointer_cast; @@ -130,7 +131,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) _kdm_valid = false; if (_encrypted && content->kdm ()) { /* XXX: maybe don't use an exception for this */ - throw StringError (_("The KDM does not decrypt the DCP. Perhaps it is targeted at the wrong CPL.")); + throw runtime_error (_("The KDM does not decrypt the DCP. Perhaps it is targeted at the wrong CPL.")); } } } |
