Safe to rely on implementation-specific exceptions?

"이희승 (Trustin Lee)" trustin at gmail.com
Sat Jun 18 06:09:18 EDT 2011


Hi,

I'd suggest to use Channel.isOpen() to determine if the channel has been closed.  Also, please use IOException instead of ClosedChannelException.  There are many other exceptions that extends IOException that indicate the closed connection, so it's much simpler and safer to use IOException.

HTH  


More information about the netty-users mailing list