summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.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/exceptions.cc
parent4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff)
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 399915253..c15e134ee 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -23,6 +23,7 @@
#include "i18n.h"
using std::string;
+using std::runtime_error;
/** @param f File that we were trying to open */
OpenFileError::OpenFileError (boost::filesystem::path f)
@@ -57,7 +58,7 @@ MissingSettingError::MissingSettingError (string s)
}
PixelFormatError::PixelFormatError (string o, AVPixelFormat f)
- : StringError (String::compose (_("Cannot handle pixel format %1 during %2"), f, o))
+ : runtime_error (String::compose (_("Cannot handle pixel format %1 during %2"), f, o))
{
}
@@ -69,13 +70,13 @@ SubRipError::SubRipError (string saw, string expecting, boost::filesystem::path
}
InvalidSignerError::InvalidSignerError ()
- : StringError (_("The certificate chain for signing is invalid"))
+ : runtime_error (_("The certificate chain for signing is invalid"))
{
}
ProgrammingError::ProgrammingError (string file, int line)
- : StringError (String::compose (_("Programming error at %1:%2"), file, line))
+ : runtime_error (String::compose (_("Programming error at %1:%2"), file, line))
{
}