Exception: MultipleErrorsError
- Defined in:
- lib/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ MultipleErrorsError
constructor
A new instance of MultipleErrorsError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ MultipleErrorsError
Returns a new instance of MultipleErrorsError.
13 14 15 |
# File 'lib/errors.rb', line 13 def initialize(errors) @errors = errors end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/errors.rb', line 17 def @errors.map { |e| e. }.join("\n") end |