Author: gsim
Date: Fri Feb 16 04:26:11 2007
New Revision: 508379
URL: http://svn.apache.org/viewvc?view=rev&rev=508379
Log:
Altered exception thrown for unopened and reopened references.
Modified:
incubator/qpid/branches/qpid.0-9/cpp/lib/broker/Reference.cpp
Modified: incubator/qpid/branches/qpid.0-9/cpp/lib/broker/Reference.cpp
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/qpid.0-9/cpp/lib/broker/Reference.cpp?view=diff&rev=508379&r1=508378&r2=508379
==============================================================================
--- incubator/qpid/branches/qpid.0-9/cpp/lib/broker/Reference.cpp (original)
+++ incubator/qpid/branches/qpid.0-9/cpp/lib/broker/Reference.cpp Fri Feb 16
04:26:11 2007
@@ -30,15 +30,14 @@
// 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;
}