Bump libcxml for Centos build fix.
[libdcp.git] / src / exceptions.cc
index 6a32a33f740bc854c274c2819ca40160e4e7611e..eb655bfa3df682f6a477cc282312aec9f89d4aed 100644 (file)
 using std::string;
 using namespace libdcp;
 
-FileError::FileError (std::string const & message, boost::filesystem::path filename, int number)
-       : _message (String::compose ("%1 (error %2) (%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))
+{
+
+}