[jboss-remoting-commits] JBoss Remoting SVN: r5454 - remoting2/branches/2.2/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Sat Sep 12 12:19:01 EDT 2009


Author: ron.sigal at jboss.com
Date: 2009-09-12 12:19:00 -0400 (Sat, 12 Sep 2009)
New Revision: 5454

Modified:
   remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java
Log:
JBREM-1154: connect() throws CannotConnectException instead of plain RuntimeException.

Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java	2009-09-10 16:05:36 UTC (rev 5453)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java	2009-09-12 16:19:00 UTC (rev 5454)
@@ -1801,8 +1801,7 @@
          }
          catch (Throwable throwable)
          {
-            RuntimeException e =
-               new RuntimeException("Error setting up client lease upon performing connect.");
+            RuntimeException e = new CannotConnectException("Error setting up client lease upon performing connect.");
             e.initCause(throwable);
             throw e;
          }



More information about the jboss-remoting-commits mailing list