diff options
author | Bhupendra Bhusman Bhardwaj <bhupendrab@apache.org> | 2007-03-21 12:03:51 +0000 |
---|---|---|
committer | Bhupendra Bhusman Bhardwaj <bhupendrab@apache.org> | 2007-03-21 12:03:51 +0000 |
commit | c34d844fcd591e1edc676201034cd1b0a437addd (patch) | |
tree | 34e77329fae455ec3bc42cbbe3f7f5853a8d520e | |
parent | 1b0c34d63206b35307df80686ea6549daf1a1608 (diff) | |
download | qpid-python-c34d844fcd591e1edc676201034cd1b0a437addd.tar.gz |
Exception thrown should be JMException, because management application don't know about AMQException
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520850 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java index 386b0e6c45..23c32aceab 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/AMQBrokerManagerMBean.java @@ -171,7 +171,7 @@ public class AMQBrokerManagerMBean extends AMQManagedObject implements ManagedBr } catch (AMQException ex) { - throw new MBeanException(ex,"Error in creating queue " + queueName); + throw new MBeanException(new JMException(ex.getMessage()),"Error in creating queue " + queueName); } } @@ -202,7 +202,7 @@ public class AMQBrokerManagerMBean extends AMQManagedObject implements ManagedBr } catch (AMQException ex) { - throw new MBeanException(ex, ex.toString()); + throw new MBeanException(new JMException(ex.getMessage()), "Error in deleting queue " + queueName); } } |