MainForm.OnUnhandledException C# (CSharp) 메소드

OnUnhandledException() 정적인 개인적인 메소드

static private OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e UnhandledExceptionEventArgs
리턴 void
	static void OnUnhandledException (object sender, UnhandledExceptionEventArgs e)
	{
		if (e.ExceptionObject != null)
			_events.Add ("UnhandledException:" + e.ExceptionObject + " | " + e.IsTerminating);
		else
			_events.Add ("UnhandledException");

		using (StreamWriter sw = new StreamWriter (_exceptionFile, false, Encoding.UTF8)) {
			sw.Write (e.ExceptionObject.ToString ());
		}
	}
}
MainForm