Class: Concurrent::MultipleErrors
Relationships & Source Files | |
Inherits: |
Concurrent::Error
|
Defined in: | lib/concurrent-ruby/concurrent/errors.rb |
Overview
Aggregates multiple exceptions.
Class Method Summary
Instance Attribute Summary
- #errors readonly
Constructor Details
.new(errors, message = "#{errors.size} errors") ⇒ MultipleErrors
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 61
def initialize(errors, = "#{errors.size} errors") @errors = errors super [*, *errors.map { |e| [format('%s (%s)', e., e.class), *e.backtrace] }.flatten(1) ].join("\n") end
Instance Attribute Details
#errors (readonly)
[ GitHub ]# File 'lib/concurrent-ruby/concurrent/errors.rb', line 59
attr_reader :errors