summaryrefslogtreecommitdiff
path: root/src/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.cc')
-rw-r--r--src/exceptions.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc
index 951627a5..eb655bfa 100644
--- a/src/exceptions.cc
+++ b/src/exceptions.cc
@@ -23,11 +23,16 @@
using std::string;
using namespace libdcp;
-FileError::FileError (std::string const & message, boost::filesystem::path filename, int number)
- : _message (String::compose ("%1 (%2) (error %3)", message, filename.string(), number))
+FileError::FileError (string const & message, boost::filesystem::path filename, int number)
+ : StringError (String::compose ("%1 (%2) (error %3)", message, filename.string(), number))
, _filename (filename)
, _number (number)
{
}
+NotEncryptedError::NotEncryptedError (string const & what)
+ : StringError (String::compose ("%1 asset is not encrypted", what))
+{
+
+}