diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-21 22:59:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-21 22:59:19 +0100 |
| commit | 92984df6ab50ba4ec90d105e44b58efa863c4b59 (patch) | |
| tree | 492b129885467a20078af519da9864c7d2319c0a /src/lib/exceptions.h | |
| parent | f868d7b9828766aab128f19ec8536efcac36ae37 (diff) | |
Even better open-file error reports.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 1a32b5402..75f4a8cd1 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. |
