private static ValidateResponse ( SecurityBase response ) : void | ||
response | SecurityBase | |
return | void |
private static void ValidateResponse(SecurityBase response)
{
if (!string.Equals(response.Code, SuccessCode, StringComparison.OrdinalIgnoreCase))
{
throw new AmazonServiceException(string.Format(CultureInfo.InvariantCulture,
"Unable to retrieve credentials. Code = \"{0}\". Message = \"{1}\".",
response.Code, response.Message));
}
}