Exception: AWS::S3::Errors::NoSuchKey

Inherits:
Errors::Base
  • Object
show all
Includes:
Errors::ClientError
Defined in:
lib/aws/s3/errors.rb

Overview

This error is special, because S3 does not return a body with the HTTP response. The interface is the same as for any other client error.

Instance Attribute Summary

Attributes inherited from Errors::Base

#code, #http_request, #http_response

Instance Method Summary collapse

Methods included from Errors::ExceptionMixinClassMethods

#new

Constructor Details

#initialize(req, resp, code = nil, message = nil) ⇒ NoSuchKey

Returns a new instance of NoSuchKey.


73
74
75
# File 'lib/aws/s3/errors.rb', line 73

def initialize(req, resp, code = nil, message = nil)
  super(req, resp, "NoSuchKey", "No Such Key")
end