Esempio n. 1
0
    public override void ReportErrorFromLogCallback(string condition, string stackTrace)
    {
        try
        {
            ReportUnhandledException(YandexAppMetricaErrorDetails.FromLogCallback(condition, stackTrace));
        }
        catch (Exception e)
        {
#if DEBUG
            Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace);
#endif
            // use old crash format
            ymm_reportErrorWithIdentifier(condition, condition, stackTrace);
        }
    }
Esempio n. 2
0
    public override void ReportErrorFromLogCallback(string condition, string stackTrace)
    {
        try
        {
            ReportUnhandledException(YandexAppMetricaErrorDetails.FromLogCallback(condition, stackTrace));
        }
        catch (Exception e)
        {
#if DEBUG
            Debug.Log("[AppMetrica] Failed to parse stacktrace: " + e.Message + "\n" + e.StackTrace);
#endif
            // use old crash format
            AndroidJavaObject throwableObject = stackTrace == null ? null : ThrowableFromStringStackTrace(stackTrace);
            CallAppMetrica("reportError", new[] { "String", "String", "Throwable" },
                           condition, condition, throwableObject);
        }
    }