Base class for the two service error classes:
{ClientError}
{ServerError}
When interacting with Amazon AWS services, you will sometimes receive a non-200 level response. These http responses are treated as errors.
Errors in the three and four hundreds are client errors ({ClientError}). A client error should not be resent without changes. The body of the http response (the error message) should give more information about the nature of the problem.
A 500 level error typically indicates the service is having an issue.
Requests that generate service errors are automatically retried with an exponential backoff. If the service still fails to respond with a 200 after 3 retries the error is raised.
@return [Http::Request] The low level http request that caused the
error to be raised.
@return [Http::Response] The low level http response from the service
that wrapped the service error.
# File lib/aws/errors.rb, line 51 def initialize http_request = nil, http_response = nil, message = nil message ||= http_response.body if http_response @http_request = http_request @http_response = http_response super(message) end