From 781982ea9a78f88fef130dc08cd028b7e5f47937 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 18 Sep 2013 18:46:58 +0100 Subject: A few encryption-related fixes and comments. --- src/exceptions.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/exceptions.h') 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 + /** @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) {} }; -- cgit v1.2.3