code: synchronized void connectionError(
              final SibRaMessagingEngineConnection connection,
              final SIException exception) {
  
          final String methodName = "connectionError";
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, methodName, new Object[] { connection,
                      exception });
          }
  
          if (_remoteMessagingEngine) {
  
              if (connection.equals(_remoteConnection)) {
  
                  /*
                   * We have lost our remote connection, output a warning to the
                   * admin console, close the connection and schedule an attempt
                   * to create a new one
                   */
  
                  SibTr.warning(TRACE, "CONNECTION_ERROR_CWSIV0776",
                          new Object[] { connection.getConnection().getMeName(),
                                  _endpointConfiguration.getBusName(), this,
                                  exception });
  
                  _remoteConnection.close();
                  _remoteConnection = null;
  
                  scheduleCreateRemoteListener();
  
              } else {
  
                  /*
                   * We have already closed the remote connection
                   */
                  if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
                      SibTr.debug(this, TRACE, "Connection " + connection
                              + " not equal to current remote connection "
                              + _remoteConnection);
                  }
  
              }
  
          } else {
  
              /*
               * Output a message to the admin console and deactivate the endpoint
               */
  
              SibTr.error(TRACE, "CONNECTION_ERROR_CWSIV0767", new Object[] {
                      exception, connection.getConnection().getMeName(), this });
              deactivate();
          }
  
          if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
              SibTr.exit(this, TRACE, methodName);
          }
      }
docs: Indicates that an error has been detected on the given connection.
  
  @param connection
  the connection
  @param exception
  the error