code: public void fireConnectionErrorOccured(SQLException ex) {
      ConnectionEvent event = new ConnectionEvent(this, ex);
      for (ConnectionEventListener listener : connectionEventListeners) {
        listener.connectionErrorOccurred(event);
      }
    }
docs: Fire connection error to listening listeners.
  
  @param ex exception