Bug 610156 - The qpid::messaging API sometimes uses exceptions from the qpid:: namespace
Summary: The qpid::messaging API sometimes uses exceptions from the qpid:: namespace
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: All
OS: Linux
urgent
medium
Target Milestone: 1.3
: ---
Assignee: Gordon Sim
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks: 612283
TreeView+ depends on / blocked
 
Reported: 2010-07-01 16:25 UTC by Ted Ross
Modified: 2012-12-11 20:42 UTC (History)
2 users (show)

Fixed In Version: 0.10
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 612283 (view as bug list)
Environment:
Last Closed: 2012-12-11 20:30:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-664 0 None None None Never

Description Ted Ross 2010-07-01 16:25:43 UTC
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):

1.3 beta4


How reproducible:

100%

Steps to Reproduce:

Use the following sequence in the C++ API:

  using namespace qpid::messaging;

  Connection conn = Connection("localhost");
  Session    sess = conn.createSession();

  
Actual results:

Because the connection is not open, the createSession call throws an exception (expected) but the exception is "qpid::Exception" (not expected).


Expected results:

I expect an exception derived from qpid::messaging::MessagingException

Comment 1 Gordon Sim 2010-07-01 19:21:57 UTC
Fixed on trunk (r959721) and in release repo (http://mrg1.lab.bos.redhat.com/git/?p=qpid.git;a=commitdiff;h=9a005978daf378f235f2806a1e50eeb0dd44bd94).


Note You need to log in before you can comment on or make changes to this bug.