summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
commit781982ea9a78f88fef130dc08cd028b7e5f47937 (patch)
tree5132d1abeecd40814b06d148bfd126b3b48b2604 /src/exceptions.h
parent56782052e43a1e010f7f07cbc0dbaed5b6cb50a3 (diff)
A few encryption-related fixes and comments.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index 4c53a66d..de744812 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -20,6 +20,8 @@
#ifndef LIBDCP_EXCEPTIONS_H
#define LIBDCP_EXCEPTIONS_H
+#include <boost/filesystem.hpp>
+
/** @file src/exceptions.h
* @brief Exceptions thrown by libdcp.
*/
@@ -31,7 +33,7 @@ namespace libdcp
class FileError : public std::exception
{
public:
- FileError (std::string const & message, std::string const & filename)
+ FileError (std::string const & message, boost::filesystem::path filename)
: _message (message)
, _filename (filename)
{}
@@ -44,7 +46,7 @@ public:
}
/** @return filename of file that was involved */
- std::string filename () const {
+ boost::filesystem::path filename () const {
return _filename;
}
@@ -52,14 +54,14 @@ private:
/** error message */
std::string _message;
/** filename of file that was involved */
- std::string _filename;
+ boost::filesystem::path _filename;
};
/** @brief An exception related to an MXF file */
class MXFFileError : public FileError
{
public:
- MXFFileError (std::string const & message, std::string const & filename)
+ MXFFileError (std::string const & message, boost::filesystem::path filename)
: FileError (message, filename)
{}
};