qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r1451362 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java
Date Thu, 28 Feb 2013 21:37:52 GMT
Author: rajith
Date: Thu Feb 28 21:37:52 2013
New Revision: 1451362

URL: http://svn.apache.org/r1451362
Log:
QPID-4608 Added code to handle TransportException and any other
RuntimeException.

Modified:
    qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java

Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java?rev=1451362&r1=1451361&r2=1451362&view=diff
==============================================================================
--- qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java (original)
+++ qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java Thu Feb
28 21:37:52 2013
@@ -1436,6 +1436,14 @@ public abstract class AMQSession<C exten
         {
            throw toJMSException("Cannot create temporary queue",e);
         }
+        catch(TransportException e)
+        {
+            throw toJMSException("Cannot create temporary queue: " + e.getMessage(), e);
+        }
+        catch(Exception e)
+        {
+            throw new JMSAMQException("Cannot create temporary queue: " + e.getMessage(),
e);
+        }
     }
 
     public TemporaryTopic createTemporaryTopic() throws JMSException



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message