diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-10 20:44:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-13 20:34:07 +0200 |
| commit | 2795ab2e05fcd27a56ddb08ecbbc6af5c3bf983a (patch) | |
| tree | dc66e7590728ace6fd2a7b0f90462f6da712e468 /src/exceptions.h | |
| parent | 97570ebdf7c0dc12a8218a143e2803ec7a792526 (diff) | |
Pass disk full / too many open files errors up to DoM.v1.10.26
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index ee4ef142..49f5a21e 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -365,6 +365,27 @@ public: }; +class DiskFullError : public std::runtime_error +{ +public: + DiskFullError(boost::filesystem::path filename); + + boost::filesystem::path filename() const { + return _filename; + } + +private: + boost::filesystem::path _filename; +}; + + +class TooManyOpenFilesError : public std::runtime_error +{ +public: + TooManyOpenFilesError(); +}; + + } |
