diff options
| author | Alan Conway <aconway@apache.org> | 2008-11-05 15:22:47 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-11-05 15:22:47 +0000 |
| commit | 42fdaeaebac89f1e9d60097d2af61ce7cc7eacb4 (patch) | |
| tree | cb54794ced7f926c4d6948aeb7cd999f5ead3d46 /qpid/cpp/rubygen | |
| parent | c68194067c2b31bc6fbb3e57238fe713582c81fe (diff) | |
| download | qpid-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-x | qpid/cpp/rubygen/framing.0-10/constants.rb | 2 |
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;" } |
