code: @Override
      public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
          log.warn("Exception caught {}", cause.getMessage());
          if (log.isDebugEnabled()) {
              log.error("Exception detail", cause);
          }
      }
docs: {@inheritDoc}