/// <summary> /// Management error /// </summary> /// <param name="exceptionError">Exception of error</param> /// <param name="errorReason">Reason of error</param> /// <param name="tryForReconnect">If true try for reconnect to server</param> #region OnErrorHandler private void OnErrorHandler(Exception exceptionError, ClientErrorReason errorReason, bool tryForReconnect = true) { // run event OnError?.Invoke(exceptionError, errorReason); // Try for reconnect if (tryForReconnect) { OnReconnectHandler(_mainAccountUtilities.Account); } }
public void OnError(Exception ex, ClientErrorReason reason) { ShowEventLogs($"OnError: Client Error.\nError reason: {reason}\n{ex.StackTrace}"); }