class Aws::Plugins::RetryErrors::ErrorInspector

@api private

def checksum?

def checksum?
  CHECKSUM_ERRORS.include?(@name) || @error.is_a?(Errors::ChecksumError)
end

def expired_credentials?

def expired_credentials?
  !!(EXPIRED_CREDS.include?(@name) || @name.match(/expired/i))
end

def extract_name(error)

def extract_name(error)
  if error.is_a?(Errors::ServiceError)
    error.class.code
  else
    error.class.name.to_s
  end
end

def initialize(error, http_status_code)

def initialize(error, http_status_code)
  @error = error
  @name = extract_name(error)
  @http_status_code = http_status_code
end

def networking?

def networking?
  @error.is_a?(Seahorse::Client::NetworkingError) ||
  NETWORKING_ERRORS.include?(@name) ||
  @http_status_code == 0
end

def server?

def server?
  (500..599).include?(@http_status_code)
end

def throttling_error?

def throttling_error?
  !!(THROTTLING_ERRORS.include?(@name) || @name.match(/throttl/i))
end