Exception: MultipleErrorsError

Inherits:
AppError
  • Object
show all
Defined in:
lib/errors.rb

Instance Method Summary collapse

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

#messageObject



17
18
19
# File 'lib/errors.rb', line 17

def message
  @errors.map { |e| e.message }.join("\n")
end