public void ScheduleException(string condition, string stackTrace)
    {
        if (Debug)
        {
            UnityDebug.Log("sending exception to sentry.");
        }

        var stack    = new List <StackTraceSpec>();
        var exc      = condition.Split(new char[] { ':' }, 2);
        var excType  = string.Empty;
        var excValue = string.Empty;

        if (exc.Length == 2)
        {
            excType  = exc[0];
            excValue = exc[1].Substring(1); // strip the space
        }
        else
        {
            excType  = "GeneralError";
            excValue = condition;
        }

        foreach (var stackTraceSpec in GetStackTraces(stackTrace))
        {
            stack.Add(stackTraceSpec);
        }

        var @event = new SentryExceptionEvent(excType, excValue, GetBreadcrumbs(), stack);

        StartCoroutine(ContinueSendingEvent(@event));
    }
    public void ScheduleException(string condition, string stackTrace)
    {
        if (Debug)
        {
            UnityDebug.Log("sending exception to sentry.");
        }

        var stack = new List <StackTraceSpec>();
        var exc   = condition.Split(new char[] { ':' }, 2);

        if (exc.Length < 2)
        {
            UnityDebug.LogWarning("Sentry exception condition not valid");
            return;
        }
        var excType  = exc[0];
        var excValue = exc[1].Substring(1); // strip the space

        foreach (var stackTraceSpec in GetStackTraces(stackTrace))
        {
            stack.Add(stackTraceSpec);
        }

        var @event = new SentryExceptionEvent(excType, excValue, GetBreadcrumbs(), stack);

        StartCoroutine(ContinueSendingEvent(@event));
    }