summaryrefslogtreecommitdiff
path: root/qpid/java/client
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-09-20 10:02:29 +0000
committerSteven Shaw <steshaw@apache.org>2006-09-20 10:02:29 +0000
commitc5343add73ca7443f6eebf862a93e17e0255cc87 (patch)
tree31d10fc0dfae76471f83f72925cc8150540952de /qpid/java/client
parent7aafd89580647f94d02c5166ea24f833cfb98b2f (diff)
downloadqpid-python-c5343add73ca7443f6eebf862a93e17e0255cc87.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@448142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
-rw-r--r--qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java28
-rw-r--r--qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java12
2 files changed, 34 insertions, 6 deletions
diff --git a/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java b/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
new file mode 100644
index 0000000000..684940a271
--- /dev/null
+++ b/qpid/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/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java b/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java
index 9cffe2c484..4453aa3d59 100644
--- a/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java
+++ b/qpid/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