Exception: AWS::S3::ResponseError
- Inherits:
-
S3Exception
- Object
- StandardError
- S3Exception
- AWS::S3::ResponseError
- Defined in:
- lib/aws-matt/s3/exceptions.rb
Overview
All responses with a code between 300 and 599 that contain an <Error></Error> body are wrapped in an ErrorResponse which contains an Error object. This Error class generates a custom exception with the name of the xml Error and its message. All such runtime generated exception classes descend from ResponseError and contain the ErrorResponse object so that all code that makes a request can rescue ResponseError and get access to the ErrorResponse.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message, response) ⇒ ResponseError
Returns a new instance of ResponseError.
15 16 17 18 |
# File 'lib/aws-matt/s3/exceptions.rb', line 15 def initialize(, response) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/aws-matt/s3/exceptions.rb', line 14 def response @response end |