public void OnMessageDeleted(ErrorEventData eventData) { //Step 14: Callback for when a message is deleted Debug.Log(displayName + " OnMessageDeleted"); if (eventData.IsError) { Debug.LogError(eventData.Exception.Message); } }
private static void ReportErrorInternal( ErrorEventData error, LocationData?location = null, bool logFailure = false) { if (!m_enabled) { return; } var json = CreateWriter(); error.Write(json); if (location.HasValue) { location.Value.Write(json); } Report("error", json, logFailure); }
public static void ReportError(SeverityEnum severityEnum, string messageText, bool async = true) { if (AnalyticsEnabled) { var data = new ErrorEventData() { severity = severityEnum, message = string.IsNullOrWhiteSpace(messageText) ? "No text specified." : messageText, }; if (async) { Parallel.Start(() => { ReportErrorInternal(data); }); } else { ReportErrorInternal(data); } } }
public static void ReportError(SeverityEnum severityEnum, Exception ex, bool async = true) { if (AnalyticsEnabled) { var data = new ErrorEventData() { severity = severityEnum, message = (ex == null) ? "No exception specified." : ex.ToString(), }; if (async) { Parallel.Start(() => { ReportErrorInternal(data); }); } else { ReportErrorInternal(data); } } }
public static void ReportError(SeverityEnum severityEnum, string messageText, bool async = true) { if (!MyCompilationSymbols.RenderOrGpuProfiling) { var data = new ErrorEventData() { severity = severityEnum, message = string.IsNullOrWhiteSpace(messageText) ? "No text specified." : messageText, }; if (async) { Parallel.Start(() => { ReportErrorInternal(data); }); } else { ReportErrorInternal(data); } } }
public static void ReportError(SeverityEnum severityEnum, Exception ex, bool async = true) { if (!MyCompilationSymbols.RenderOrGpuProfiling) { var data = new ErrorEventData() { severity = severityEnum, message = (ex == null) ? "No exception specified." : ex.ToString(), }; if (async) { Parallel.Start(() => { ReportErrorInternal(data); }); } else { ReportErrorInternal(data); } } }
private static void ReportErrorInternal( ErrorEventData error, LocationData? location = null, bool logFailure = false) { if (!m_enabled) return; var json = CreateWriter(); error.Write(json); if (location.HasValue) location.Value.Write(json); Report("error", json, logFailure); }
public static void ReportError(SeverityEnum severityEnum, string messageText, bool async = true) { if (AnalyticsEnabled) { var data = new ErrorEventData() { severity = severityEnum, message = string.IsNullOrWhiteSpace(messageText) ? "No text specified." : messageText, }; if (async) Parallel.Start(() => { ReportErrorInternal(data); }); else ReportErrorInternal(data); } }
public static void ReportError(SeverityEnum severityEnum, Exception ex, bool async = true) { if (AnalyticsEnabled) { var data = new ErrorEventData() { severity = severityEnum, message = (ex == null) ? "No exception specified." : ex.ToString(), }; if (async) Parallel.Start(() => { ReportErrorInternal(data); }); else ReportErrorInternal(data); } }
public static void ReportError(SeverityEnum severityEnum, string messageText, bool async = true) { if (!MyCompilationSymbols.RenderOrGpuProfiling) { var data = new ErrorEventData() { severity = severityEnum, message = string.IsNullOrWhiteSpace(messageText) ? "No text specified." : messageText, }; if (async) Parallel.Start(() => { ReportErrorInternal(data); }); else ReportErrorInternal(data); } }
public static void ReportError(SeverityEnum severityEnum, Exception ex, bool async = true) { if (!MyCompilationSymbols.RenderOrGpuProfiling) { var data = new ErrorEventData() { severity = severityEnum, message = (ex == null) ? "No exception specified." : ex.ToString(), }; if (async) Parallel.Start(() => { ReportErrorInternal(data); }); else ReportErrorInternal(data); } }