summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/Exception.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-11-06 22:08:14 +0000
committerGordon Sim <gsim@apache.org>2008-11-06 22:08:14 +0000
commit2de0473cf8c64e06396c5f5e6a0cf8b5e982514e (patch)
treee16cb5c31d3c6399e5e3eeb0f50b793d55b1ad13 /cpp/src/qpid/Exception.h
parente1132d45340a4d1c91648cac856803428d2a60f4 (diff)
downloadqpid-python-2de0473cf8c64e06396c5f5e6a0cf8b5e982514e.tar.gz
Restrict connection close codes to the set defined in the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/Exception.h')
-rw-r--r--cpp/src/qpid/Exception.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/src/qpid/Exception.h b/cpp/src/qpid/Exception.h
index 57e7c682eb..86bf8fbc4a 100644
--- a/cpp/src/qpid/Exception.h
+++ b/cpp/src/qpid/Exception.h
@@ -24,6 +24,7 @@
#include "qpid/framing/amqp_types.h"
#include "qpid/framing/constants.h"
+#include "qpid/framing/enum.h"
#include "qpid/sys/StrError.h"
#include "qpid/Msg.h"
@@ -58,20 +59,20 @@ struct ErrnoException : public Exception {
};
struct SessionException : public Exception {
- const framing::ReplyCode code;
- SessionException(framing::ReplyCode code_, const std::string& message)
+ const framing::execution::ErrorCode code;
+ SessionException(framing::execution::ErrorCode code_, const std::string& message)
: Exception(message), code(code_) {}
};
struct ChannelException : public Exception {
- const framing::ReplyCode code;
- ChannelException(framing::ReplyCode _code, const std::string& message)
+ const framing::session::DetachCode code;
+ ChannelException(framing::session::DetachCode _code, const std::string& message)
: Exception(message), code(_code) {}
};
struct ConnectionException : public Exception {
- const framing::ReplyCode code;
- ConnectionException(framing::ReplyCode _code, const std::string& message)
+ const framing::connection::CloseCode code;
+ ConnectionException(framing::connection::CloseCode _code, const std::string& message)
: Exception(message), code(_code) {}
};