PrintException() private static method

private static PrintException ( string title, Exception e ) : void
title string
e System.Exception
return void
示例#1
0
 private static void PrintException(string title, Exception e)
 {
     Debug.LogException(e);
     if (e.InnerException != null)
     {
         UnhandledExceptionHandler.PrintException("Inner Exception: ", e.InnerException);
     }
 }
 private static void PrintException(string title, Exception e)
 {
     Debug.LogError((object)(title + e.ToString()));
     if (e.InnerException == null)
     {
         return;
     }
     UnhandledExceptionHandler.PrintException("Inner Exception: ", e.InnerException);
 }
        private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs args)
        {
            Exception exceptionObject = args.ExceptionObject as Exception;

            if (exceptionObject != null)
            {
                UnhandledExceptionHandler.PrintException("Unhandled Exception: ", exceptionObject);
            }
            UnhandledExceptionHandler.NativeUnhandledExceptionHandler();
        }
示例#4
0
        private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs args)
        {
            Exception ex = args.ExceptionObject as Exception;

            if (ex != null)
            {
                UnhandledExceptionHandler.PrintException("Unhandled Exception: ", ex);
                UnhandledExceptionHandler.NativeUnhandledExceptionHandler(ex.GetType().Name, ex.Message, ex.StackTrace);
            }
            else
            {
                UnhandledExceptionHandler.NativeUnhandledExceptionHandler(null, null, null);
            }
        }