Class AWS::Errors::Base
In: lib/aws/errors.rb
Parent: StandardError

Base class for all errors returned by the service.

Methods

Attributes

code  [R]  @return [String] The response code given by the service.
http_request  [R]  @return [Http::Request] The low level http request that caused the
  error to be raised.
http_response  [R]  @return [Http::Response] The low level http response from the service
  that wrapped the service error.

Public Class methods

@overload new(error_message)

  @param [String] error_message The body of the error message

@overload new(http_request, http_response, code = nil, message = nil)

  @param [Http::Request] http_request
  @param [Http::Response] http_response
  @param [String] code (nil)
  @param [String] message (nil)

Protected Instance methods

Extends the error object with {ServerError} or {ClientError}. This indicates if the request should be retried (server errors) or not (client errors).

[Validate]