Author: steshaw
Date: Wed Sep 20 03:02:29 2006
New Revision: 448142

URL: http://svn.apache.org/viewvc?view=rev&rev=448142
Log:
No longer throw commons-lang's NotImplementedException. See 
http://issues.apache.org/jira/browse/QPID-1

Added:
    
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
   (with props)
Modified:
    
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java

Added: 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java?view=auto&rev=448142
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
 (added)
+++ 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
 Wed Sep 20 03:02:29 2006
@@ -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");
+    }
+}

Propchange: 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/JmsNotImplementedException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java?view=diff&rev=448142&r1=448141&r2=448142
==============================================================================
--- 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java
 (original)
+++ 
incubator/qpid/trunk/qpid/java/client/src/org/apache/qpid/client/message/AbstractJMSMessage.java
 Wed Sep 20 03:02:29 2006
@@ -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 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 Object getObjectProperty(String propertyName) throws JMSException
     {
         checkPropertyName(propertyName);
-        throw new JMSException("Not implemented yet");
+        throw new JmsNotImplementedException();
     }
 
     public Enumeration getPropertyNames() throws JMSException


Reply via email to