summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h21
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();
+};
+
+
}