summaryrefslogtreecommitdiff
path: root/qpid/java/client/src
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
commite6d5d1edfb7541dc6c810ac3ec4be3c602ac21b9 (patch)
tree07b5d621dd542f06c5816b948a4cce6754a6d540 /qpid/java/client/src
parentf7f46933a5a69f9c885fd11036caccf6dad56f48 (diff)
downloadqpid-python-e6d5d1edfb7541dc6c810ac3ec4be3c602ac21b9.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@1506095 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
index 98fa6de675..5acaa5c543 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
+++ b/qpid/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);