diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2013-07-23 15:03:38 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2013-07-23 15:03:38 +0000 |
commit | 18fd12734205695b92699f1a92a72515c952a14d (patch) | |
tree | 09ff14f3ea8ce592277b8b233118f76dc8933a55 | |
parent | 7b22b039d1bcea0756f69abb50c7200df4cfeb50 (diff) | |
download | qpid-python-18fd12734205695b92699f1a92a72515c952a14d.tar.gz |
NO_JIRA Changed the exception thrown for an invalid destination from a regular JMSException to an
InvalidDestinationException. This is patch from Pavel Morevec.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1506095 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java b/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java index 98fa6de675..5acaa5c543 100644 --- a/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java +++ b/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java @@ -440,7 +440,7 @@ public abstract class BasicMessageProducer extends Closeable implements org.apac { if (!(destination instanceof AMQDestination)) { - throw new JMSException("Unsupported destination class: " + throw new InvalidDestinationException("Unsupported destination class: " + ((destination != null) ? destination.getClass() : null)); } @@ -453,7 +453,7 @@ public abstract class BasicMessageProducer extends Closeable implements org.apac } catch(Exception e) { - JMSException ex = new JMSException("Error validating destination"); + JMSException ex = new InvalidDestinationException("Error validating destination"); ex.initCause(e); ex.setLinkedException(e); |