summaryrefslogtreecommitdiff
path: root/cpp/lib/common/Exception.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-01-16 20:17:50 +0000
committerAlan Conway <aconway@apache.org>2007-01-16 20:17:50 +0000
commitbc84e62cc549ac2d751a45d61a867354c84c60d6 (patch)
tree160824086ea1edfd2d28f153626d378d69d0f516 /cpp/lib/common/Exception.h
parent0df54842626c3cc065cad1a2595458f54253a178 (diff)
downloadqpid-python-bc84e62cc549ac2d751a45d61a867354c84c60d6.tar.gz
* Renamed Session* classes to Connection* to align with AMQP spec
- broker::SessionHandlerImpl -> broker::Connection - broker::SessionHandlerImplFactory -> broker::ConnectionFactory - sys::SessionHandler -> ConnectionInputHandler - sys::SessionHandlerFactory -> ConnectionInputHandlerFactory git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496848 13f79535-47bb-0310-9956-ffa450edef68
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) {}
+};
}