summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2013-07-23 15:03:38 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2013-07-23 15:03:38 +0000
commita11e9f65f00adcb52b0ddf69dcb88c4d930e5477 (patch)
tree09ff14f3ea8ce592277b8b233118f76dc8933a55 /java
parent046efc06ff702d77e0540c19502dc8333d6c2104 (diff)
downloadqpid-python-a11e9f65f00adcb52b0ddf69dcb88c4d930e5477.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
Diffstat (limited to 'java')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java4
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);