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.


41
42
43
44
45
# File 'lib/aws/s3/errors.rb', line 41

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.


49
50
51
# File 'lib/aws/s3/errors.rb', line 49

def error_counts
  @error_counts
end