- /** @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);
+ enum Mode {
+ READ,
+ WRITE,
+ READ_WRITE
+ };
+
+ /** @param f File that we were trying to open.
+ * @param error Code of error that occurred.
+ * @param mode Mode that we tried to open the file in.
+ */
+ OpenFileError (boost::filesystem::path f, int error, Mode mode);