Safe to rely on implementation-specific exceptions?

Gima gima at iki.fi
Fri Jun 17 14:05:55 EDT 2011


Hello,


Assumption:

"exceptionCaught(..)" can catch for instance "ClosedChannelException" when
using "NioServerSocketChannelFactory".


Question:

Can I rely on the fact that I can catch exceptions thrown from
"java.nio.channels" if I choose to use "NioServerSocketChannelFactory"?


Proposition:

If so, it would be very helpful to add what backend each "ChannelFactory"
uses to the documentation, and a little remark to "ExceptionEvent" that it
can also deliver implementation-specific exceptions which are dependent on
the chosen "ChannelFactory".

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Safe-to-rely-on-implementation-specific-exceptions-tp6488202p6488202.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list