Unexpected exception while sending exception upstream

"Trustin Lee (이희승)" trustin at gmail.com
Mon Mar 8 06:10:41 EST 2010


Maybe it's the debugger that is monitoring the creation of an exception?
 Try to turn off the exception watch.

falconair wrote:
> In an upstream handler, I handle an unexpected situation by sending an
> exception to the next handler:
> 
> ctx.sendUpstream(new DefaultExceptionEvent(ctx.getChannel(),new
> Exception("ERROR")));
> 
> This exception shows up correctly in the next handler's exceptionCaught
> method; but, my Eclipse IDE also show an exception at the
> ctx.sendUpstream... line!  I expected the exception to only show up in the
> handler which receives the exception, not the handler which dispatches the
> exception.
> 
> Am I doing something wrong?

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100308/25f78851/attachment.bin 


More information about the netty-users mailing list