/**
  * Notify registered {@link ConnectionProbe}s about the error.
  *
  * @param connection the <tt>Connection</tt> event occurred on.
  */
 protected static void notifyProbesError(AIOConnection connection, Throwable error) {
   final ConnectionProbe[] probes = connection.monitoringConfig.getProbesUnsafe();
   if (probes != null) {
     for (ConnectionProbe probe : probes) {
       probe.onErrorEvent(connection, error);
     }
   }
 }