class BugSnagErrorsHandler extends ChannelInboundHandlerAdapter {

    private Bugsnag bugsnag;

    public void init(IConfig props) {<FILL_FUNCTION_BODY>}

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
        bugsnag.notify(cause);
        ctx.fireExceptionCaught(cause);
    }
}

        final String token = props.getProperty(BUGSNAG_TOKEN_PROPERTY_NAME);
        this.bugsnag = new Bugsnag(token);
    
<no_super_class>