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.



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

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



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

def errors
  @errors
end

Instance Method Details

#messageObject



44
45
46
# File 'app/workers/object_storage/migrate_uploads_worker.rb', line 44

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