src/openSourceC.DotNetLibrary.Core/Extensions/ExceptionExtensions.cs
/// <summary>
///		Returns the concatenated list of <see cref="P:Exception.Message"/> properties from
///		the root exception through all of the inner exceptions.
/// </summary>
/// <param name="source">The exception.</param>
/// <returns>
///		Returns the concatenated list of <see cref="P:Exception.Message"/> properties from
///		the root exception through all of the inner exceptions.
/// </returns>
Returns the concatenated list of  properties from
the root exception through all of the inner exceptions.
Returns the concatenated list of properties from the root exception through all of the inner exceptions .
public static string GetMessages(this Exception source)
		{
			Exception e = source;
			StringBuilder messages = new(e.Message);
			while (e.InnerException is not null)
			{
				e = e.InnerException;
				messages.Append(" ---> ").Append(e.Message);
			}
			return messages.ToString();
		}
public static string GetMessages ( this Exception source ) { Exception e = source ; StringBuilder messages = new ( e . Message ) ; while ( e . InnerException is not null ) { e = e . InnerException ; messages . Append ( " " ) . Append ( e . Message ) ; } return messages . ToString ( ) ; }
Returns the concatenated list of  properties from
the root exception through all of the inner exceptions.
Returns the concatenated list of properties from the root exception through all of the inner exceptions .
Returns the concatenated list of  properties from
the root exception through all of the inner exceptions.
Returns the concatenated list of properties from the root exception through all of the inner exceptions .
Exception
this
source
None