X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.h;h=c2f82e15ba5315bca041b63bd925b4c164f2d658;hb=67a68bd971ebe1b35daa3f75873b4ccb53c00ba0;hp=1a32b5402194ba7357dfa385764c2b4b10d71b48;hpb=513947df0f421c086ac56dff48dfe540b0a380c2;p=dcpomatic.git diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 1a32b5402..c2f82e15b 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -95,8 +95,11 @@ public: class OpenFileError : public FileError { public: - /** @param f File that we were trying to open */ - OpenFileError (boost::filesystem::path f, int error); + /** @param f File that we were trying to open. + * @param error Code of error that occurred. + * @param reading true if we were opening to read, false if opening to write. + */ + OpenFileError (boost::filesystem::path f, int error, bool reading); }; /** @class ReadFileError. @@ -164,7 +167,9 @@ public: class BadSettingError : public SettingError { public: - /** @param s Name of setting that is bad */ + /** @param s Name of setting that is bad. + * @param m Error message. + */ BadSettingError (std::string s, std::string m) : SettingError (s, m) {} @@ -222,6 +227,7 @@ class InvalidSignerError : public std::runtime_error { public: InvalidSignerError (); + InvalidSignerError (std::string reason); }; class ProgrammingError : public std::runtime_error @@ -238,4 +244,12 @@ public: {} }; +class OldFormatError : public std::runtime_error +{ +public: + OldFormatError (std::string s) + : std::runtime_error (s) + {} +}; + #endif