Exception: Mamiya::Storages::S3::MultipleObjectsDeletionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mamiya/storages/s3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ MultipleObjectsDeletionError

Returns a new instance of MultipleObjectsDeletionError.



12
13
14
15
16
17
18
# File 'lib/mamiya/storages/s3.rb', line 12

def initialize(errors)
  message = errors.map do |error|
    "#{error.code}: #{error.message} (key=#{error.key})"
  end.join(', ')
  super(message)
  @errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



10
11
12
# File 'lib/mamiya/storages/s3.rb', line 10

def errors
  @errors
end