Exemplo n.º 1
0
    private static void NotifySafely(string errorClass, string message, string severity, string context, string stackTrace)
    {
        if (errorClass == null)
        {
            errorClass = "Error";
        }

        if (message == null)
        {
            message = "";
        }

        if (severity == null)
        {
            severity = "error";
        }

        if (context == null)
        {
            context = "";
        }

        if (stackTrace == null)
        {
            return;
        }

        NativeBugsnag.Notify(errorClass, message, severity, context, stackTrace);
    }
Exemplo n.º 2
0
    private static void NotifySafely(string errorClass, string message, Severity severity, string context, string stackTrace, LogType?type, string severityReason)
    {
        if (errorClass == null)
        {
            errorClass = "Error";
        }

        if (message == null)
        {
            message = "";
        }

        if (context == null)
        {
            context = "";
        }

        if (stackTrace == null)
        {
            return;
        }

        string logType = "";

        if (type != null)
        {
            logType = type.ToString();
        }

        NativeBugsnag.Notify(errorClass, message, SeverityValues[(int)severity], context, stackTrace, logType, severityReason);
    }