Exception: MARS::Workflows::AggregateError
- Inherits:
-
StandardError
- Object
- StandardError
- MARS::Workflows::AggregateError
- Defined in:
- lib/mars/workflows/aggregate_error.rb
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.
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].}" }.join("\n")) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/mars/workflows/aggregate_error.rb', line 6 def errors @errors end |