System.Net.ValidationHelper.ExceptionMessage C# (CSharp) Метод

ExceptionMessage() публичный статический Метод

public static ExceptionMessage ( Exception exception ) : string
exception System.Exception
Результат string
        public static string ExceptionMessage(Exception exception) {
            if (exception==null) {
                return string.Empty;
            }
            if (exception.InnerException==null) {
                return exception.Message;
            }
            return exception.Message + " (" + ExceptionMessage(exception.InnerException) + ")";
        }