class OpenFileError : public FileError
{
public:
- /** @param f File that we were trying to open */
- OpenFileError (boost::filesystem::path f);
-};
-
-/** @class CreateFileError.
- * @brief Indicates that some error occurred when trying to create a file.
- */
-class CreateFileError : public FileError
-{
-public:
- /** @param f File that we were trying to create */
- CreateFileError (boost::filesystem::path f);
+ /** @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.
* @brief Indicates that some error occurred when trying to read from a file
*/
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)
{}
{
public:
InvalidSignerError ();
+ InvalidSignerError (std::string reason);
};
class ProgrammingError : public std::runtime_error
{}
};
+class OldFormatError : public std::runtime_error
+{
+public:
+ OldFormatError (std::string s)
+ : std::runtime_error (s)
+ {}
+};
+
#endif