diff --git a/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java b/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java index b3743dcb85..ceca448b79 100644 --- a/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java +++ b/org.springframework.integration.ip/src/main/java/org/springframework/integration/ip/tcp/NioSocketWriter.java @@ -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); }