From c5211e63139dcd0ddfb2061b8ada312e6ea3083c Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Tue, 20 Feb 2007 09:16:59 +0000 Subject: Renamed AMQInvalidSelectorException to be AMQInvalidArgumentException to better fit the generic use of the argument table in the AMQP Queue.Bind spec. Adjusted AMQConstant to match the proposal for additional codes AMQP-39,40,41 (https://wiki.108.redhat.com/jira/browse/AMQP-39). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@509478 13f79535-47bb-0310-9956-ffa450edef68 --- .../client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/client/src/test') diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java index e70196dff2..5e45d1d537 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java @@ -29,9 +29,9 @@ import org.apache.qpid.client.AMQNoRouteException; import org.apache.qpid.protocol.AMQMethodEvent; import org.apache.qpid.protocol.AMQConstant; import org.apache.qpid.AMQException; -import org.apache.qpid.AMQInvalidSelectorException; import org.apache.qpid.AMQInvalidRoutingKeyException; import org.apache.qpid.AMQChannelClosedException; +import org.apache.qpid.AMQInvalidArgumentException; import org.apache.qpid.framing.ChannelCloseBody; import org.apache.qpid.framing.AMQShortString; @@ -73,11 +73,11 @@ public class ChannelCloseMethodHandlerNoCloseOk implements StateAwareMethodListe { throw new AMQNoRouteException("Error: " + reason, null); } - else if (errorCode == AMQConstant.INVALID_SELECTOR) + else if (errorCode == AMQConstant.INVALID_ARGUMENT) { - _logger.debug("Broker responded with Invalid Selector."); + _logger.debug("Broker responded with Invalid Argument."); - throw new AMQInvalidSelectorException(String.valueOf(reason)); + throw new AMQInvalidArgumentException(String.valueOf(reason)); } else if (errorCode == AMQConstant.INVALID_ROUTING_KEY) { -- cgit v1.2.1