public static void HandleEventException(Exception ex, bool isFatal = false) { if (ex is FriendlyMessageException) { Log.Out(ex.Message); } else { Log.Exception(ex); TelemetryTools.CollectException(ex, isFatal); } }
public static void HandleCommandException(Exception ex) { if (ex is FriendlyMessageException) { Log.Debug(ex.Message); SdtdConsole.Instance.Output(ex.Message); } else { Log.Exception(ex); SdtdConsole.Instance.Output(string.Format(Resources.ErrorDuringCommand, ex.Message)); TelemetryTools.CollectException(ex); } }