Aspectacular.ExceptionExtensions.AllExceptionsBack C# (CSharp) Method

AllExceptionsBack() public static method

Returns all exceptions in the chain starting from the outermost.
public static AllExceptionsBack ( this ex ) : IEnumerable
ex this
return IEnumerable
        public static IEnumerable<Exception> AllExceptionsBack(this Exception ex)
        {
            for(; ex != null; ex = ex.InnerException)
                yield return ex;
        }