diff options
author | Steven Shaw <steshaw@apache.org> | 2006-09-20 10:02:29 +0000 |
---|---|---|
committer | Steven Shaw <steshaw@apache.org> | 2006-09-20 10:02:29 +0000 |
commit | f16c92e657a5b6837e6208b9f64943f241a6123a (patch) | |
tree | 356e98f37c7c8240c22f948365826ad1141f0785 | |
parent | 7f244ec98ed3a770e6de51213ae427928a880bd5 (diff) | |
download | qpid-python-f16c92e657a5b6837e6208b9f64943f241a6123a.tar.gz |
No longer throw commons-lang's NotImplementedException. See http://issues.apache.org/jira/browse/QPID-1
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@448142 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/org/apache/qpid/client/JmsNotImplementedException.java | 28 | ||||
-rw-r--r-- | java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java | 12 |
2 files changed, 34 insertions, 6 deletions
diff --git a/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java b/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java new file mode 100644 index 0000000000..684940a271 --- /dev/null +++ b/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java @@ -0,0 +1,28 @@ +/* + * + * Copyright (c) 2006 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +package org.apache.qpid.client; + +import javax.jms.JMSException; + +public class JmsNotImplementedException extends JMSException +{ + public JmsNotImplementedException() + { + super("Not implemented"); + } +} diff --git a/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java b/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java index 9cffe2c484..4453aa3d59 100644 --- a/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java +++ b/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java @@ -17,16 +17,16 @@ */ package org.apache.qpid.client.message; +import org.apache.commons.collections.map.ReferenceMap; +import org.apache.mina.common.ByteBuffer; import org.apache.qpid.AMQException; import org.apache.qpid.client.AMQDestination; import org.apache.qpid.client.AMQQueue; import org.apache.qpid.client.AMQTopic; +import org.apache.qpid.client.JmsNotImplementedException; import org.apache.qpid.framing.BasicContentHeaderProperties; import org.apache.qpid.framing.FieldTable; import org.apache.qpid.framing.FieldTableKeyEnumeration; -import org.apache.commons.collections.map.ReferenceMap; -import org.apache.commons.lang.NotImplementedException; -import org.apache.mina.common.ByteBuffer; import javax.jms.Destination; import javax.jms.JMSException; @@ -175,12 +175,12 @@ public abstract class AbstractJMSMessage extends AMQMessage implements javax.jms public Destination getJMSDestination() throws JMSException { // TODO: implement this once we have sorted out how to figure out the exchange class - throw new NotImplementedException(); + throw new JmsNotImplementedException(); } public void setJMSDestination(Destination destination) throws JMSException { - throw new NotImplementedException(); + throw new JmsNotImplementedException(); } public int getJMSDeliveryMode() throws JMSException @@ -423,7 +423,7 @@ public abstract class AbstractJMSMessage extends AMQMessage implements javax.jms public Object getObjectProperty(String propertyName) throws JMSException { checkPropertyName(propertyName); - throw new JMSException("Not implemented yet"); + throw new JmsNotImplementedException(); } public Enumeration getPropertyNames() throws JMSException |