Exception: AWS::S3::Errors::NoSuchKey
- Inherits:
-
Errors::Base
- Object
- StandardError
- Errors::Base
- AWS::S3::Errors::NoSuchKey
- 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
-
#initialize(req, resp, code = nil, message = nil) ⇒ NoSuchKey
constructor
A new instance of NoSuchKey.
Methods included from Errors::ExceptionMixinClassMethods
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, = nil) super(req, resp, "NoSuchKey", "No Such Key") end |