propagate all exceptions through IOExceptions
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 1 Mar 2011 18:24:03 +0000 (18:24 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 1 Mar 2011 18:24:03 +0000 (18:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075964 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/SecureNioChannel.java

index e7f26e9..c3a9eac 100644 (file)
@@ -253,11 +253,15 @@ public class SecureNioChannel extends NioChannel  {
                     }
                 }
             }
+        } 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) {}
         }
-
     }