Exception: MARS::Workflows::AggregateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mars/workflows/aggregate_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ AggregateError

Returns a new instance of AggregateError.



8
9
10
11
# File 'lib/mars/workflows/aggregate_error.rb', line 8

def initialize(errors)
  @errors = errors
  super(errors.map { |error| "#{error[:step_name]}: #{error[:error].message}" }.join("\n"))
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



6
7
8
# File 'lib/mars/workflows/aggregate_error.rb', line 6

def errors
  @errors
end