summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-11-05 15:22:47 +0000
committerAlan Conway <aconway@apache.org>2008-11-05 15:22:47 +0000
commit42fdaeaebac89f1e9d60097d2af61ce7cc7eacb4 (patch)
treecb54794ced7f926c4d6948aeb7cd999f5ead3d46 /qpid/cpp/rubygen
parentc68194067c2b31bc6fbb3e57238fe713582c81fe (diff)
downloadqpid-python-42fdaeaebac89f1e9d60097d2af61ce7cc7eacb4.tar.gz
Cluster: replicate transaction state to newcomers.
constants.rb: generate type code constants for AMQP types. Useful with Array. framing/Array: - added some std:::vector like functions & typedefs. - use TypeCode enums, human readable ostream << operator. rubygen - fixed error in generation of exceptions for bad codes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@711587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
-rwxr-xr-xqpid/cpp/rubygen/framing.0-10/constants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/constants.rb b/qpid/cpp/rubygen/framing.0-10/constants.rb
index 206aabadf9..fa46751f7a 100755
--- a/qpid/cpp/rubygen/framing.0-10/constants.rb
+++ b/qpid/cpp/rubygen/framing.0-10/constants.rb
@@ -152,7 +152,7 @@ EOS
assign = "holder = new #{c.name.caps}Exception(text); " unless c.name == "normal"
genl "case #{c.value}: #{assign}break;"
}
- genl " holder = new #{invalid}(QPID_MSG(\"Bad exception code: \" << code << \": \" << text));"
+ genl "default: holder = new #{invalid}(QPID_MSG(\"Bad #{enum.parent.name}: \" << code << \": \" << text));"
}
genl "return holder;"
}