Exception: AWS::S3::Errors::BatchDeleteError
- Inherits:
-
StandardError
- Object
- StandardError
- AWS::S3::Errors::BatchDeleteError
- Defined in:
- lib/aws/s3/errors.rb
Instance Attribute Summary collapse
-
#error_counts ⇒ Hash
readonly
Returns a hash of error codes and how many objects failed with that code.
Instance Method Summary collapse
-
#initialize(error_counts) ⇒ BatchDeleteError
constructor
A new instance of BatchDeleteError.
Constructor Details
#initialize(error_counts) ⇒ BatchDeleteError
Returns a new instance of BatchDeleteError.
40 41 42 43 44 |
# File 'lib/aws/s3/errors.rb', line 40 def initialize error_counts @error_counts = error_counts total = error_counts.values.inject(0) {|sum,count| sum + count } super("Failed to delete #{total} objects") end |
Instance Attribute Details
#error_counts ⇒ Hash (readonly)
Returns a hash of error codes and how many objects failed with that code.
48 49 50 |
# File 'lib/aws/s3/errors.rb', line 48 def error_counts @error_counts end |