CSharpRTMP.MainClass.CurrentDomain_UnhandledException C# (CSharp) Method

CurrentDomain_UnhandledException() private static method

private static CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
return void
        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var exception = e.ExceptionObject as Exception;
            if (exception != null)
            {
                while (exception.InnerException != null) exception = exception.InnerException;
                Logger.FATAL(exception.ToString());
            }
            else
                Logger.FATAL(e.ToString());
            
        }