summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-20 10:49:29 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-20 10:49:29 +0100
commite0adfd85dd7987ee2b77eea7f6d3c13885729a38 (patch)
tree924ed417edc2c7c579a58c868d8370f3346008d9 /src/lib/film.cc
parent4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff)
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 47bcc35df..9f766a749 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -80,6 +80,7 @@ using std::make_pair;
using std::cout;
using std::list;
using std::set;
+using std::runtime_error;
using boost::shared_ptr;
using boost::weak_ptr;
using boost::dynamic_pointer_cast;
@@ -291,7 +292,7 @@ Film::make_dcp ()
}
if (content().empty()) {
- throw StringError (_("You must add some content to the DCP before creating it"));
+ throw runtime_error (_("You must add some content to the DCP before creating it"));
}
if (dcp_content_type() == 0) {
@@ -370,7 +371,7 @@ list<string>
Film::read_metadata ()
{
if (boost::filesystem::exists (file ("metadata")) && !boost::filesystem::exists (file ("metadata.xml"))) {
- throw StringError (_("This film was created with an older version of DCP-o-matic, and unfortunately it cannot be loaded into this version. You will need to create a new Film, re-add your content and set it up again. Sorry!"));
+ throw runtime_error (_("This film was created with an older version of DCP-o-matic, and unfortunately it cannot be loaded into this version. You will need to create a new Film, re-add your content and set it up again. Sorry!"));
}
cxml::Document f ("Metadata");
@@ -378,7 +379,7 @@ Film::read_metadata ()
_state_version = f.number_child<int> ("Version");
if (_state_version > current_state_version) {
- throw StringError (_("This film was created with a newer version of DCP-o-matic, and it cannot be loaded into this version. Sorry!"));
+ throw runtime_error (_("This film was created with a newer version of DCP-o-matic, and it cannot be loaded into this version. Sorry!"));
}
_name = f.string_child ("Name");