Skip to Content Skip to Search

Raised by ActiveRecord::Base#save! and ActiveRecord::Base.create! methods when a record is invalid and cannot be saved.

Methods
N

Attributes

[R] record

Class Public methods

new(message = nil, record = nil)

# File activerecord/lib/active_record/errors.rb, line 145
def initialize(message = nil, record = nil)
  @record = record
  super(message)
end