Exception: Petra::ReadIntegrityError

Inherits:
ValueComparisonError show all
Defined in:
lib/petra/exceptions.rb

Overview

Thrown when a read attribute changed its value externally If we read AND changed the attribute, a ReadWriteIntegrityError is raised instead

Instance Attribute Summary collapse

Attributes inherited from ValueComparisonError

#attribute, #external_value, #object

Method Summary

Methods inherited from ValueComparisonError

#continuable?, #ignore!

Methods inherited from HandlerException

#continuable?, #continue!, #reset_transaction!, #retry!, #rollback_transaction!

Methods inherited from ExtendedError

#initialize

Constructor Details

This class inherits a constructor from Petra::ExtendedError

Instance Attribute Details

#last_read_valueObject (readonly)

The value we last read for this attribute (before it was changed)



115
116
117
# File 'lib/petra/exceptions.rb', line 115

def last_read_value
  @last_read_value
end