Beispiel #1
0
 /// <summary>
 /// Called after the network thrown an exception while updating the connection.
 /// </summary>
 /// <param name="sender">The sender instance.</param>
 /// <param name="ev">The <see cref="UpdatingConnectionErrorEventArgs"/> instance.</param>
 protected virtual void OnUpdatingConnectionError(object sender, UpdatingConnectionErrorEventArgs ev) => UpdatingConnectionError?.Invoke(sender, ev);
 /// <inheritdoc cref="API.Network.OnConnectingError(object, ConnectingErrorEventArgs)"/>
 public void OnUpdatingConnectionError(object _, UpdatingConnectionErrorEventArgs ev)
 {
     Log.Error($"[NET] {string.Format(Language.UpdatingConnectionError, Instance.Config.IsDebugEnabled ? ev.Exception.ToString() : ev.Exception.Message)}");
 }