Class: Mongoid::Sadstory::Errors::AttributeAssignmentError

Inherits:
Errors::MongoidError
  • Object
show all
Defined in:
lib/mongoid/sadstory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exception, attribute) ⇒ AttributeAssignmentError

Returns a new instance of AttributeAssignmentError.



19
20
21
22
23
# File 'lib/mongoid/sadstory.rb', line 19

def initialize(message, exception, attribute)
  @exception = exception
  @attribute = attribute
  @message = message
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



17
18
19
# File 'lib/mongoid/sadstory.rb', line 17

def attribute
  @attribute
end

#exceptionObject (readonly)

Returns the value of attribute exception.



17
18
19
# File 'lib/mongoid/sadstory.rb', line 17

def exception
  @exception
end