Red Hat Bugzilla – Bug 610156
The qpid::messaging API sometimes uses exceptions from the qpid:: namespace
Last modified: 2012-12-11 15:42:40 EST
Description of problem:
There is at least one case in which an exception is thrown from the API that does not derive from qpid::messaging::MessagingException. This is an ABI problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Use the following sequence in the C++ API:
using namespace qpid::messaging;
Connection conn = Connection("localhost");
Session sess = conn.createSession();
Because the connection is not open, the createSession call throws an exception (expected) but the exception is "qpid::Exception" (not expected).
I expect an exception derived from qpid::messaging::MessagingException
Fixed on trunk (r959721) and in release repo (http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=commitdiff;h=9a005978daf378f235f2806a1e50eeb0dd44bd94).