Praeclarum.Log.GetUserErrorMessage C# (CSharp) Method

GetUserErrorMessage() public static method

public static GetUserErrorMessage ( Exception ex ) : string
ex System.Exception
return string
		public static string GetUserErrorMessage (Exception ex)
		{
			if (ex == null)
				return "";

			var i = ex;
			while (i.InnerException != null) {
				i = i.InnerException;
			}
			return i.Message;
		}