From f305d3d0eaed6b4b9390b86df3fc79013c905a7d Mon Sep 17 00:00:00 2001 From: Aidan Skinner Date: Wed, 2 Jul 2008 10:05:49 +0000 Subject: QPID-962 Exception handling was... unpleasing... Fix up of patch from rhs AMQConnection: Refactor listener and remove list, we're only interested in the most recent one anyway. Add get/set for lastException, which can now be any Exception AMQConnectionDelegate_0_8.java: Stop masking/stackign exceptions, just throw them. AMQProtocolHandler.java: attainState can now throw any sort of Exception AMQStateManager.java: attainState can now throw any Exception ConnectionTest.java: check that exception cause is not null git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673343 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java/client/src/test') diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java index f856e8c20b..97eed08ab1 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java @@ -134,6 +134,7 @@ public class ConnectionTest extends TestCase } catch (AMQException amqe) { + assertNotNull("No cause set", amqe.getCause()); if (amqe.getCause().getClass() == Exception.class) { System.err.println("QPID-594 : WARNING RACE CONDITION. Unable to determine cause of Connection Failure."); -- cgit v1.2.1