diff options
author | Gordon Sim <gsim@apache.org> | 2007-02-16 12:26:11 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-02-16 12:26:11 +0000 |
commit | 4fad1dd36b7b391b814aafe2834414e251fa4034 (patch) | |
tree | d1f48699d67d9ae45c3e4f9e1faae551b3c090d2 /cpp/lib/broker/Reference.cpp | |
parent | 3b5328e72148757fb88e77b953016c9d2aabb9d8 (diff) | |
download | qpid-python-4fad1dd36b7b391b814aafe2834414e251fa4034.tar.gz |
Altered exception thrown for unopened and reopened references.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@508379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/Reference.cpp')
-rw-r--r-- | cpp/lib/broker/Reference.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/lib/broker/Reference.cpp b/cpp/lib/broker/Reference.cpp index dc9cb94f84..0aedef2bef 100644 --- a/cpp/lib/broker/Reference.cpp +++ b/cpp/lib/broker/Reference.cpp @@ -30,15 +30,14 @@ Reference& ReferenceRegistry::open(const Reference::Id& id) { // TODO aconway 2007-02-05: should we throw Channel or Connection // exceptions here? if (i != references.end()) - THROW_QPID_ERROR(CLIENT_ERROR, "Attempt to re-open reference " +id); + throw ConnectionException(503, "Attempt to re-open reference " +id); return references[id] = Reference(id, this); } Reference& ReferenceRegistry::get(const Reference::Id& id) { ReferenceMap::iterator i = references.find(id); if (i == references.end()) - THROW_QPID_ERROR( - CLIENT_ERROR, "Attempt to use non-existent reference "+id); + throw ConnectionException(503, "Attempt to use non-existent reference "+id); return i->second; } |