diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2007-10-16 21:55:15 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2007-10-16 21:55:15 +0000 |
| commit | 74dc07fce6d955e14d863be762132212f55cf416 (patch) | |
| tree | a31bfaf054aa2ca6b047e89aa4a94ff303a7f286 | |
| parent | 84baf0acb5254857e424e22a6c1cedbd1ffb8ec2 (diff) | |
| download | qpid-python-74dc07fce6d955e14d863be762132212f55cf416.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@585270 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java index 9c30b59b83..51617d57df 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java +++ b/qpid/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) { |
