summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index ccf7a081..770bd916 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -211,6 +211,20 @@ private:
bool _starts_too_early;
};
+
+class StartCompressionError : public std::runtime_error
+{
+public:
+ explicit StartCompressionError (boost::optional<int> code = boost::optional<int>());
+
+ boost::optional<int> code () const {
+ return _code;
+ }
+
+private:
+ boost::optional<int> _code;
+};
+
}
#endif