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 | e6d5d1edfb7541dc6c810ac3ec4be3c602ac21b9 (patch) | |
| tree | 07b5d621dd542f06c5816b948a4cce6754a6d540 /qpid/java | |
| parent | f7f46933a5a69f9c885fd11036caccf6dad56f48 (diff) | |
| download | qpid-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')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java | 4 |
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); |
