Beyond_Beyaan.BeyondBeyaan.HandleException C# (CSharp) Метод

HandleException() приватный Метод

private HandleException ( Exception e ) : void
e System.Exception
Результат void
        private void HandleException(Exception e)
        {
            var path = Path.Combine(Environment.CurrentDirectory, "Error.log");
            try
            {
                using (StreamWriter writer = new StreamWriter(path))
                {
                    writer.WriteLine("Exception: " + e.Message);
                    writer.WriteLine();
                    writer.WriteLine("Callstack: " + e.StackTrace);
                }
                MessageBox.Show("The game has crashed.  Please post the text in " + path +
                            " to https://code.google.com/p/beyond-beyaan/issues/list.  I apologize for the inconvenience.");
            }
            catch
            {
                MessageBox.Show(
                    "The game has crashed, and Error.log failed to be created.  Here's the exception and callstack, please post it at https://code.google.com/p/beyond-beyaan/issues/list.  Press Ctrl-C to copy the text of this dialog.\n\r\n\rException: " +
                    e.Message + "\n\r\n\rCallstack: " + e.StackTrace);
            }
            Close();
        }