Do not wrap IOException with IOException

This commit is contained in:
Trustin Lee 2012-06-10 04:30:56 +09:00
parent e376888d48
commit b6d5593e6a

View File

@ -155,6 +155,9 @@ public class BlockingReadHandler<E> extends ChannelInboundMessageHandlerAdapter<
return null;
}
if (e instanceof IOException) {
throw (IOException) e;
}
if (e instanceof Throwable) {
throw (IOException) new IOException().initCause((Throwable) e);
}