/// <summary> /// Returns all exceptions in the chain starting from the innermost. /// </summary> /// <param name="ex"></param> /// <returns></returns> public static IEnumerable <Exception> AllExceptions(this Exception ex) { return(ex.AllExceptionsBack().Reverse()); }