Exception: AWS::S3::Errors::BatchDeleteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws/s3/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countsHash (readonly)

Returns a hash of error codes and how many objects failed with that code.

Returns:

  • (Hash)

    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