Mark ChannelHandler.exceptionCaught(...) as deprected.
Motivation: exceptionCaught(...) will only handle inbound exceptions which means it makes not much sense to have it also on ChannelOutboundHandler. Because of this we should move it to ChannelInboundHandler. Modifications: Add @deprecated annotation to ChannelHandler.exceptionCaught(...). Result: Preapre to cleanup the API in later release.
This commit is contained in:
parent
80f6104072
commit
7c5a1178b5
@ -189,7 +189,10 @@ public interface ChannelHandler {
|
||||
|
||||
/**
|
||||
* Gets called if a {@link Throwable} was thrown.
|
||||
*
|
||||
* @deprecated is part of {@link ChannelInboundHandler}
|
||||
*/
|
||||
@Deprecated
|
||||
void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;
|
||||
|
||||
/**
|
||||
|
@ -70,5 +70,6 @@ public interface ChannelInboundHandler extends ChannelHandler {
|
||||
* Gets called if a {@link Throwable} was thrown.
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("deprecated")
|
||||
void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user