Author: david.lloyd(a)jboss.com
Date: 2008-03-27 16:00:54 -0400 (Thu, 27 Mar 2008)
New Revision: 3803
Modified:
remoting3/trunk/jrpp/src/main/java/org/jboss/cx/remoting/jrpp/JrppConnection.java
Log:
Add a better error message if the connection is closed
Modified:
remoting3/trunk/jrpp/src/main/java/org/jboss/cx/remoting/jrpp/JrppConnection.java
===================================================================
---
remoting3/trunk/jrpp/src/main/java/org/jboss/cx/remoting/jrpp/JrppConnection.java 2008-03-27
09:02:43 UTC (rev 3802)
+++
remoting3/trunk/jrpp/src/main/java/org/jboss/cx/remoting/jrpp/JrppConnection.java 2008-03-27
20:00:54 UTC (rev 3803)
@@ -397,6 +397,8 @@
} catch (IllegalStateException e) {
if (state.in(State.FAILED)) {
throw failureReason;
+ } else if (state.in(State.CLOSED)) {
+ throw new IOException("Connection closed");
} else {
throw e;
}
Show replies by date