Author: ron.sigal(a)jboss.com
Date: 2009-09-12 12:26:15 -0400 (Sat, 12 Sep 2009)
New Revision: 5458
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
Log:
JBREM-1154: connect() throws CannotConnectException instead of plain RuntimeException.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java 2009-09-12 16:24:49 UTC
(rev 5457)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java 2009-09-12 16:26:15 UTC
(rev 5458)
@@ -1793,8 +1793,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;
}