code: static synchronized void connectionClosedOnError(EnhancedDebugger debugger, Exception e) {
          int index = getInstance().tabbedPane.indexOfComponent(debugger.tabbedPane);
          getInstance().tabbedPane.setToolTipTextAt(
                  index,
                  "XMPPConnection closed due to the exception: " + e.getMessage());
          getInstance().tabbedPane.setIconAt(
                  index,
                  connectionClosedOnErrorIcon);
      }
docs: Notification that the connection was closed due to an exception.
  
  @param debugger the debugger whose connection was closed due to an exception.
  @param e        the exception.