code: public void exceptionCaught(Throwable cause, IoSession s) {
          if (s == null) {
              org.apache.mina.util.ExceptionMonitor.getInstance().exceptionCaught(cause);
          } else {
              exceptionCaught0(cause, s);
          }
      }
docs: Invoked when there are any uncaught exceptions.