diff options
author | Alan Conway <aconway@apache.org> | 2008-10-08 02:03:05 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-10-08 02:03:05 +0000 |
commit | 86635352d11ede9a0a277d08f54ae1327b8f8323 (patch) | |
tree | 208064f7269e05f95356be0a7854b4588d7989c7 /qpid/cpp/src/tests/exception_test.cpp | |
parent | 83633e01c8c8df0aa23196a68eb29dcdc245fb48 (diff) | |
download | qpid-python-86635352d11ede9a0a277d08f54ae1327b8f8323.tar.gz |
SessionImpl using ExceptionHolder to generate correctly typed exceptions..
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@702681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/exception_test.cpp')
-rw-r--r-- | qpid/cpp/src/tests/exception_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/exception_test.cpp b/qpid/cpp/src/tests/exception_test.cpp index b42c1e58e0..41061173a7 100644 --- a/qpid/cpp/src/tests/exception_test.cpp +++ b/qpid/cpp/src/tests/exception_test.cpp @@ -83,7 +83,7 @@ QPID_AUTO_TEST_CASE(TestSessionBusy) { ScopedSuppressLogging sl; // Suppress messages for expected errors. f.connection.newSession(f.session.getId().getName()); BOOST_FAIL("Expected SessionBusyException for " << f.session.getId().getName()); - } catch (const Exception&) {} // FIXME aconway 2008-09-22: client is not throwing correct exception. + } catch (const SessionBusyException&) {} // FIXME aconway 2008-09-22: client is not throwing correct exception. } QPID_AUTO_TEST_CASE(DisconnectedPop) { @@ -91,7 +91,7 @@ QPID_AUTO_TEST_CASE(DisconnectedPop) { ProxyConnection c(fix.broker->getPort()); fix.session.queueDeclare(arg::queue="q"); fix.subs.subscribe(fix.lq, "q"); - Catcher<Exception> pop(bind(&LocalQueue::pop, boost::ref(fix.lq))); + Catcher<ConnectionException> pop(bind(&LocalQueue::pop, boost::ref(fix.lq))); fix.connection.proxy.close(); BOOST_CHECK(pop.join()); } |