diff options
author | Alan Conway <aconway@apache.org> | 2008-06-06 20:23:28 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-06-06 20:23:28 +0000 |
commit | 41dce45772f586e18444267e2246b097d04ef28d (patch) | |
tree | 2bcaaff7c650c51195086783a640b0ee9bbbcf42 /qpid/cpp/rubygen | |
parent | 7355356ad0684a056eaf786e6d4a7db23bcd6fca (diff) | |
download | qpid-python-41dce45772f586e18444267e2246b097d04ef28d.tar.gz |
Added exceptions to sys::Waitable.
Fixed client side deadlock involving client::Bounds.
Fixed incorrect exception messages during connection shutdown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@664114 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rwxr-xr-x | qpid/cpp/rubygen/framing.0-10/constants.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/constants.rb b/qpid/cpp/rubygen/framing.0-10/constants.rb index df74ac7459..7f026a3e54 100755 --- a/qpid/cpp/rubygen/framing.0-10/constants.rb +++ b/qpid/cpp/rubygen/framing.0-10/constants.rb @@ -62,14 +62,14 @@ class ConstantsGen < CppGen def reply_exceptions_h() h_file("#{@dir}/reply_exceptions") { include "qpid/Exception" - include "qpid/ExceptionHolder" + include "qpid/sys/ExceptionHolder" namespace(@namespace) { define_exceptions_for("execution", "error-code", "SessionException") define_exceptions_for("connection", "close-code", "ConnectionException") define_exceptions_for("session", "detach-code", "ChannelException") genl genl "void throwExecutionException(int code, const std::string& text);" - genl "void setExecutionException(ExceptionHolder& holder, int code, const std::string& text);" + genl "void setExecutionException(sys::ExceptionHolder& holder, int code, const std::string& text);" } } end @@ -81,11 +81,11 @@ class ConstantsGen < CppGen include "<assert.h>" namespace("qpid::framing") { scope("void throwExecutionException(int code, const std::string& text) {"){ - genl "ExceptionHolder h;" + genl "sys::ExceptionHolder h;" genl "setExecutionException(h, code, text);" genl "h.raise();" } - scope("void setExecutionException(ExceptionHolder& holder, int code, const std::string& text) {"){ + scope("void setExecutionException(sys::ExceptionHolder& holder, int code, const std::string& text) {"){ scope("switch (code) {") { enum = @amqp.class_("execution").domain("error-code").enum enum.choices.each { |c| |