Axiom.Demos.Browser.WinForm.Program.BuildExceptionString C# (CSharp) 메소드

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

private static BuildExceptionString ( Exception exception ) : string
exception System.Exception
리턴 string
		private static string BuildExceptionString( Exception exception )
		{
			string errMessage = string.Empty;

			errMessage += exception.Message + Environment.NewLine + exception.StackTrace;

			while ( exception.InnerException != null )
			{
				errMessage += BuildInnerExceptionString( exception.InnerException );
				exception = exception.InnerException;
			}

			return errMessage;
		}