diff options
author | Alan Conway <aconway@apache.org> | 2008-10-08 02:03:05 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-10-08 02:03:05 +0000 |
commit | 8f38f773e173aa86d653996bc0b9d0abb160c846 (patch) | |
tree | 16aa42b4c310ae69989508c7030f6a6c0e1e19cb /cpp/rubygen/framing.0-10 | |
parent | 1896a5d32c87555877edd1dafc1bd34e3fcf5683 (diff) | |
download | qpid-python-8f38f773e173aa86d653996bc0b9d0abb160c846.tar.gz |
SessionImpl using ExceptionHolder to generate correctly typed exceptions..
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/framing.0-10')
-rwxr-xr-x | cpp/rubygen/framing.0-10/constants.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/rubygen/framing.0-10/constants.rb b/cpp/rubygen/framing.0-10/constants.rb index c2b43dbf37..0560cef887 100755 --- a/cpp/rubygen/framing.0-10/constants.rb +++ b/cpp/rubygen/framing.0-10/constants.rb @@ -93,9 +93,9 @@ class ConstantsGen < CppGen scope("switch (code) {") { enum = @amqp.class_(class_name).domain(domain_name).enum enum.choices.each { |c| - genl "case #{c.value}: holder = new #{c.name.caps}Exception(text); break;" unless c.name == "normal" + assign = "holder = new #{c.name.caps}Exception(text); " unless c.name == "normal" + genl "case #{c.value}: #{assign}break;" } - genl "default: assert(0);" genl " holder = new #{invalid}(QPID_MSG(\"Bad exception code: \" << code << \": \" << text));" } genl "return holder;" |