Exception: ObjectStorage::MigrateUploadsWorker::Report::MigrationFailures

Inherits:
StandardError
  • Object
show all
Defined in:
app/workers/object_storage/migrate_uploads_worker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ MigrationFailures

Returns a new instance of MigrationFailures.


35
36
37
# File 'app/workers/object_storage/migrate_uploads_worker.rb', line 35

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors


33
34
35
# File 'app/workers/object_storage/migrate_uploads_worker.rb', line 33

def errors
  @errors
end

Instance Method Details

#messageObject


39
40
41
# File 'app/workers/object_storage/migrate_uploads_worker.rb', line 39

def message
  errors.map(&:message).join("\n")
end