Raised by ActiveRecord::Validations#save! and ActiveRecord::Base.create! methods when record cannot be saved because record is invalid.
# File activerecord/lib/active_record/errors.rb, line 57 def initialize(message, record = nil) @record = record super(message) end
© 2004–2017 David Heinemeier Hansson
Licensed under the MIT License.