Microsoft.Azure.Commands.OperationalInsights.CloudExceptionExtensions.CreateFormattedException C# (CSharp) Method

CreateFormattedException() public static method

public static CreateFormattedException ( this cloudException ) : CloudException
cloudException this
return CloudException
        public static CloudException CreateFormattedException(this CloudException cloudException)
        {
            return new CloudException(
                string.Format(
                    CultureInfo.InvariantCulture,
                    Resources.FormattedCloudExceptionMessageTemplate,
                    cloudException.Response.StatusCode,
                    cloudException.Error.Code,
                    cloudException.Error.Message,
                    cloudException.GetRequestId(),
                    DateTime.UtcNow));
        }