Exception: Her::RecordInvalid

Inherits:
Exception
  • Object
show all
Defined in:
lib/her/exceptions/record_invalid.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ RecordInvalid

Returns a new instance of RecordInvalid.



3
4
5
6
# File 'lib/her/exceptions/record_invalid.rb', line 3

def initialize(errors)
  message = errors.map{ |field, message| [field, message].join(' ') }.join(', ')
  super(message)
end