summaryrefslogtreecommitdiff
path: root/cpp/lib/common/Exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/Exception.h')
-rw-r--r--cpp/lib/common/Exception.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/lib/common/Exception.h b/cpp/lib/common/Exception.h
index f35d427bb0..61bbc0ab5f 100644
--- a/cpp/lib/common/Exception.h
+++ b/cpp/lib/common/Exception.h
@@ -54,6 +54,17 @@ class Exception : public std::exception
typedef boost::shared_ptr<Exception> shared_ptr;
};
+struct ChannelException : public qpid::Exception {
+ u_int16_t code;
+ ChannelException(u_int16_t _code, std::string _text)
+ : Exception(_text), code(_code) {}
+};
+
+struct ConnectionException : public qpid::Exception {
+ u_int16_t code;
+ ConnectionException(u_int16_t _code, std::string _text)
+ : Exception(_text), code(_code) {}
+};
}