class ActiveRecord::RecordNotSaved - activerecord-4.2.4 Documentation

# class ActiveRecord::RecordNotSaved

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

### Attributes

record[R]

### Public Class Methods

new(message, record = nil) click to toggle source
Calls superclass method

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