Exception: S3::Error
- Inherits:
-
StandardError
- Object
- StandardError
- S3::Error
- Defined in:
- lib/s3/errors.rb
Direct Known Subclasses
AccessDeniedError, AuthenticationError, BucketAlreadyExistsError, BucketNotEmptyError, BucketNotFoundError, EntityTooLargeError, EntityTooSmallError, InternalError, InvalidBucketNameError, InvalidPartError, InvalidPartOrderError, InvalidRequestError, NetworkError, NoSuchKeyError, NoSuchUploadError, ServiceUnavailableError, TimeoutError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(message = nil, code: nil, request_id: nil, resource: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, code: nil, request_id: nil, resource: nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/s3/errors.rb', line 5 def initialize( = nil, code: nil, request_id: nil, resource: nil ) @code = code @request_id = request_id @resource = resource super( || code ) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/s3/errors.rb', line 3 def code @code end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
3 4 5 |
# File 'lib/s3/errors.rb', line 3 def request_id @request_id end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
3 4 5 |
# File 'lib/s3/errors.rb', line 3 def resource @resource end |