public override void ReportUnhandledException(Exception exception) { try { ReportUnhandledException(YandexAppMetricaErrorDetails.From(exception)); } catch (Exception e) { #if DEBUG Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace); #endif // use old crash format ymm_reportError(exception.Message, exception.StackTrace); } }
public override void ReportUnhandledException(Exception exception) { try { ReportUnhandledException(YandexAppMetricaErrorDetails.From(exception)); } catch (Exception e) { #if DEBUG Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace); #endif // use old crash format CallAppMetrica("reportUnhandledException", new[] { "Throwable" }, exception.ToAndroidThrowable()); } }
public override void ReportError(string groupIdentifier, string condition, Exception exception) { try { ReportError(groupIdentifier, condition, exception == null ? null : YandexAppMetricaErrorDetails.From(exception)); } catch (Exception e) { #if DEBUG Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace); #endif // use old crash format ymm_reportErrorWithException(groupIdentifier, condition, JsonStringFromDictionary(exception.ToHashtable())); } }
public override void ReportError(string groupIdentifier, string condition, Exception exception) { try { ReportError(groupIdentifier, condition, exception == null ? null : YandexAppMetricaErrorDetails.From(exception)); } catch (Exception e) { #if DEBUG Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace); #endif // use old crash format CallAppMetrica("reportError", new[] { "String", "String", "Throwable" }, groupIdentifier, condition, exception.ToAndroidThrowable()); } }