예제 #1
0
    public static void LogHandledException(Exception e)
    {
        string fullName = e.GetType().FullName;
        string message  = e.Message;
        string text     = CrittercismAndroid.StackTrace(e);

        CrittercismAndroid.PluginCallStatic("_logHandledException", new object[]
        {
            fullName,
            message,
            text
        });
    }
예제 #2
0
    private static void LogUnhandledException(Exception e)
    {
        string fullName = e.GetType().FullName;
        string message  = e.Message;
        string text     = CrittercismAndroid.StackTrace(e);

        CrittercismAndroid.PluginCallStatic((!CrittercismAndroid.logUnhandledExceptionAsCrash) ? "_logHandledException" : "_logCrashException", new object[]
        {
            fullName,
            message,
            text
        });
    }