Exception: Cordis::AggregateError
- Defined in:
- lib/cordis.rb
Overview
Aggregated errors from parallel (Ruby has no built-in AggregateError)
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ AggregateError
constructor
A new instance of AggregateError.
Constructor Details
#initialize(errors) ⇒ AggregateError
Returns a new instance of AggregateError.
16 17 18 19 |
# File 'lib/cordis.rb', line 16 def initialize(errors) @errors = errors super("#{errors.size} error(s): #{errors.map(&:message).join('; ')}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
14 15 16 |
# File 'lib/cordis.rb', line 14 def errors @errors end |