src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Helper method to construct an error message containing the messages of inner
//     exceptions if present
// </summary>
// <returns>the error message</returns>
Helper method to construct an error message containing the messages of inner
exceptions if present
Helper method to construct an error message containing the messages of inner exceptions if present
internal static string ConstructInnerExceptionErrorMessage(Exception e)
        {
            if (e == null)
            {
                Debug.Fail("Null exception in ConstructInnerExceptionErrorMessage()");
                return null;
            }
            var sbErrMsg = new StringBuilder();
            sbErrMsg.Append(e.Message);
            var innerException = e.InnerException;
            while (null != innerException)
            {
                sbErrMsg.Append(Environment.NewLine);
                sbErrMsg.Append(
                    String.Format(
                        CultureInfo.CurrentCulture, Resources.VSUtils_InnerExceptionErrorFormat, innerException.GetType().FullName,
                        innerException.Message));
                innerException = innerException.InnerException;
            }
            return sbErrMsg.ToString();
        }
internal static string ConstructInnerExceptionErrorMessage ( Exception e ) { if ( e == null ) { Debug . Fail ( " " ) ; return null ; } var sbErrMsg = new StringBuilder ( ) ; sbErrMsg . Append ( e . Message ) ; var innerException = e . InnerException ; while ( null != innerException ) { sbErrMsg . Append ( Environment . NewLine ) ; sbErrMsg . Append ( String . Format ( CultureInfo . CurrentCulture , Resources . VSUtils_InnerExceptionErrorFormat , innerException . GetType ( ) . FullName , innerException . Message ) ) ; innerException = innerException . InnerException ; } return sbErrMsg . ToString ( ) ; }
Helper method to construct an error message containing the messages of inner
exceptions if present
Helper method to construct an error message containing the messages of inner exceptions if present
// construct the error message including inner exceptions
the error message
the error message
e
Exception