aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.h
diff options
context:
space:
mode:
Diffstat (limited to 'pulse.h')
-rw-r--r--pulse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pulse.h b/pulse.h
index 55b07c3..32dfe25 100644
--- a/pulse.h
+++ b/pulse.h
@@ -7,6 +7,7 @@
// C++
#include <memory>
+#include <stdexcept>
#include <string>
#include <vector>
@@ -260,4 +261,13 @@ class PulseClient {
unique_ptr<Notifier> notifier_;
};
+class unreachable : public std::runtime_error {
+ public:
+ unreachable() throw() :
+ std::runtime_error("unreachable code path encountered") {}
+
+ unreachable(const std::string& message) throw() :
+ std::runtime_error(message) {}
+};
+
// vim: set et ts=2 sw=2: