class method
self.new
Ruby on Rails 4.2.9
Since v2.2.3Signature
self.new(message, exception, attribute)
No documentation comment.
Parameters
-
messagereq -
exceptionreq -
attributereq
Source
# File activerecord/lib/active_record/errors.rb, line 200
def initialize(message, exception, attribute)
super(message)
@exception = exception
@attribute = attribute
end
Defined in activerecord/lib/active_record/errors.rb line 200
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeAssignmentError