diff --git a/transport/src/main/java/io/netty/channel/ChannelHandler.java b/transport/src/main/java/io/netty/channel/ChannelHandler.java index e99b78781f..898f7523bc 100644 --- a/transport/src/main/java/io/netty/channel/ChannelHandler.java +++ b/transport/src/main/java/io/netty/channel/ChannelHandler.java @@ -192,7 +192,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; /** diff --git a/transport/src/main/java/io/netty/channel/ChannelInboundHandler.java b/transport/src/main/java/io/netty/channel/ChannelInboundHandler.java index 56693593f5..b70880ee28 100644 --- a/transport/src/main/java/io/netty/channel/ChannelInboundHandler.java +++ b/transport/src/main/java/io/netty/channel/ChannelInboundHandler.java @@ -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; }