Exception: Petra::ReadIntegrityError
- Inherits:
-
ValueComparisonError
- Object
- StandardError
- PetraError
- ExtendedError
- HandlerException
- ValueComparisonError
- Petra::ReadIntegrityError
- 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
-
#last_read_value ⇒ Object
readonly
The value we last read for this attribute (before it was changed).
Attributes inherited from ValueComparisonError
#attribute, #external_value, #object
Method Summary
Methods inherited from ValueComparisonError
Methods inherited from HandlerException
#continuable?, #continue!, #reset_transaction!, #retry!, #rollback_transaction!
Methods inherited from ExtendedError
Constructor Details
This class inherits a constructor from Petra::ExtendedError
Instance Attribute Details
#last_read_value ⇒ Object (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 |