qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r585270 - /incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
Date Tue, 16 Oct 2007 21:55:16 GMT
Author: rajith
Date: Tue Oct 16 14:55:15 2007
New Revision: 585270

URL: http://svn.apache.org/viewvc?rev=585270&view=rev
Log:
TCK: If there is an error in the selector, an InvalidSelectorException should be thrown

Modified:
    incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java

Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java?rev=585270&r1=585269&r2=585270&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
(original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
Tue Oct 16 14:55:15 2007
@@ -35,6 +35,7 @@
 import org.apache.qpidity.filter.MessageFilter;
 import org.apache.qpidity.filter.JMSSelectorFilter;
 
+import javax.jms.InvalidSelectorException;
 import javax.jms.JMSException;
 import javax.jms.MessageListener;
 import java.io.IOException;
@@ -91,7 +92,7 @@
             }
             catch (QpidException e)
             {
-                throw new JMSException("cannot create consumer because of selector issue");
+                throw new InvalidSelectorException("cannot create consumer because of selector
issue");
             }
             if (destination instanceof AMQQueue)
             {



Mime
View raw message