diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-02-20 09:16:59 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-02-20 09:16:59 +0000 |
| commit | c5211e63139dcd0ddfb2061b8ada312e6ea3083c (patch) | |
| tree | 53b336e3ed265db410689baf02c591a0d1017e25 /java/client/src/test | |
| parent | 625170d9a3f64970987161c59a60497065c4bef6 (diff) | |
| download | qpid-python-c5211e63139dcd0ddfb2061b8ada312e6ea3083c.tar.gz | |
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
Diffstat (limited to 'java/client/src/test')
| -rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |
