You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by tiandike <wh...@21cn.com> on 2007/11/15 08:05:02 UTC

about iohandler exceptionCaught

I want to know what exceptions can be caught in iohandler exceptionCaught. 
some of mina example simply write 
session.close();
in exceptionCaught .

I think some exception  doesn't need to close the session.
So I want to ask a question: which exception should I close the session.
-- 
View this message in context: http://www.nabble.com/about-iohandler-exceptionCaught-tf4810185s16868.html#a13762753
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Re: about iohandler exceptionCaught

Posted by Mark <el...@gmail.com>.
It depends on what your handler is doing.  Most of the exceptions I have
seen are IOException or Socket Exceptions.



On Nov 15, 2007 2:05 AM, tiandike <wh...@21cn.com> wrote:

>
> I want to know what exceptions can be caught in iohandler exceptionCaught.
> some of mina example simply write
> session.close();
> in exceptionCaught .
>
> I think some exception  doesn't need to close the session.
> So I want to ask a question: which exception should I close the session.
> --
> View this message in context:
> http://www.nabble.com/about-iohandler-exceptionCaught-tf4810185s16868.html#a13762753
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> .
>
>


-- 
--------------------------------
The adjuration to be "normal" seems shockingly repellent to me; I see
neither hope nor comfort in sinking to that low level. I think it is
ignorance that makes people think of abnormality only with horror and allows
them to remain undismayed at the proximity of "normal" to average and
mediocre. For surely anyone who achieves anything is, essentially, abnormal.
    Dr. Karl Menninger