tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r1075964 - /tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java
Date Tue, 01 Mar 2011 18:24:03 GMT
Author: fhanik
Date: Tue Mar  1 18:24:03 2011
New Revision: 1075964

URL: http://svn.apache.org/viewvc?rev=1075964&view=rev
Log:
propagate all exceptions through IOExceptions

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java?rev=1075964&r1=1075963&r2=1075964&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/SecureNioChannel.java Tue Mar  1 18:24:03
2011
@@ -253,11 +253,15 @@ public class SecureNioChannel extends Ni
                     }
                 }
             }
+        } catch (IOException x) {
+            throw x;
+        } catch (Exception cx) {
+            IOException x = new IOException(cx);
+            throw x;
         } finally {
             if (key!=null) try {key.cancel();} catch (Exception ignore) {}
             if (selector!=null) try {selector.close();} catch (Exception ignore) {}
         }
-
     }
     
     



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message