Fix JDK6/5 problem w/ IOException

This commit is contained in:
Gary Russell
2010-04-16 23:31:13 +00:00
parent db26f74750
commit 6ceec19ef3

View File

@@ -143,7 +143,7 @@ public class NioSocketWriter extends AbstractSocketWriter {
channel.write(buffer);
return;
} catch (InterruptedException e) {
throw new IOException("Could not get buffer", e);
throw new IOException("Could not get buffer; interrupted");
} finally {
returnBuffer(buffer);
}
@@ -183,7 +183,7 @@ public class NioSocketWriter extends AbstractSocketWriter {
channel.write(buffer);
return;
} catch (InterruptedException e) {
throw new IOException("Could not get buffer", e);
throw new IOException("Could not get buffer; interrupted");
} finally {
returnBuffer(buffer);
}
@@ -218,7 +218,7 @@ public class NioSocketWriter extends AbstractSocketWriter {
channel.write(buffer);
return;
} catch (InterruptedException e) {
throw new IOException("Could not get buffer", e);
throw new IOException("Could not get buffer; interrupted");
} finally {
returnBuffer(buffer);
}