Exception: Cordis::AggregateError

Inherits:
Error
  • Object
show all
Defined in:
lib/cordis.rb

Overview

Aggregated errors from parallel (Ruby has no built-in AggregateError)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



14
15
16
# File 'lib/cordis.rb', line 14

def errors
  @errors
end