You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Puspendu Banerjee <pu...@gmail.com> on 2008/04/25 16:22:57 UTC
Throwing BindException will be more meaningful
Hi,
I have a quick query
void org.apache.mina.common.AbstractIoAcceptor.bind(SocketAddress
localAddress) throws IOException
Binds to the specified local address and start to accept incoming
connections.
Throws: IOException if failed to bindThrowing BindException will be more
meaningful. Isn't it?
I am using Apache MINA 2.0.0-M1
release<http://mina.apache.org/2008/02/25/apache-mina-200-m1-release.html>
Please explain if you are not agree with me.
--
Thanks & Regards,
Puspendu Banerjee
Re: Throwing BindException will be more meaningful
Posted by Emmanuel Lecharny <el...@apache.org>.
Puspendu Banerjee wrote:
> Hi,
> I have a quick query
>
> void org.apache.mina.common.AbstractIoAcceptor.bind(SocketAddress
> localAddress) throws IOException
>
> Binds to the specified local address and start to accept incoming
> connections.
> Throws: IOException if failed to bindThrowing BindException will be more
> meaningful. Isn't it?
>
> I am using Apache MINA 2.0.0-M1
> release<http://mina.apache.org/2008/02/25/apache-mina-200-m1-release.html>
>
> Please explain if you are not agree with me.
>
BindException extends IOException. You can always check if the thrown exception is a BindException.
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org