summaryrefslogtreecommitdiff
path: root/java/client
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2007-10-16 21:55:15 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2007-10-16 21:55:15 +0000
commit4fa9b5fc2626b1ed0b82ca3cadf5ea766accef34 (patch)
tree5b9f61c11919237948d20eb96ce24afb1f138e2d /java/client
parent428de9b6fe6f81f2bfc3f47d5db013b4b00da6a2 (diff)
downloadqpid-python-4fa9b5fc2626b1ed0b82ca3cadf5ea766accef34.tar.gz
TCK: If there is an error in the selector, an InvalidSelectorException should be thrown
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@585270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java b/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
index 9c30b59b83..51617d57df 100644
--- a/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
+++ b/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
@@ -35,6 +35,7 @@ import org.apache.qpidity.QpidException;
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 @@ public class BasicMessageConsumer_0_10 extends BasicMessageConsumer<Struct[], By
}
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)
{