Exception: ActiveRecord::RecordNotSaved
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ActiveRecordError,
StandardError
|
|
Instance Chain:
self,
ActiveRecordError,
StandardError
|
|
Inherits: |
ActiveRecord::ActiveRecordError
|
Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Raised by ActiveRecord::Base.save!
and ActiveRecord::Base.create!
methods when record cannot be saved because record is invalid.
Class Method Summary
- .new(message, record = nil) ⇒ RecordNotSaved constructor
Instance Attribute Summary
- #record readonly
Constructor Details
.new(message, record = nil) ⇒ RecordNotSaved
Instance Attribute Details
#record (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 55
attr_reader :record