Raised by ActiveRecord::Base#save! and ActiveRecord::Base.create! methods when a record is invalid and can not be saved.
Methods
Attributes
[R] | record |
Class Public methods
new(message = nil, record = nil)
📝 Source code
# File activerecord/lib/active_record/errors.rb, line 71
def initialize(message = nil, record = nil)
@record = record
super(message)
end
🔎 See on GitHub