Amazon.Runtime.RetryPolicy.GetWebData C# (CSharp) Method

GetWebData() private static method

private static GetWebData ( AmazonServiceException ase ) : IWebResponseData
ase AmazonServiceException
return IWebResponseData
        private static IWebResponseData GetWebData(AmazonServiceException ase)
        {
            if (ase != null)
            {
                Exception e = ase;
                do
                {
                    var here = e as HttpErrorResponseException;
                    if (here != null)
                        return here.Response;
                    e = e.InnerException;
                } while (e != null);
            }

            return null;
        }