Exception: Foobara::Persistence::InvalidRecordError
- Inherits:
-
StandardError
- Object
- StandardError
- Foobara::Persistence::InvalidRecordError
- Defined in:
- foobara-0.0.110/projects/persistence/src/entity_base/transaction_table.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ InvalidRecordError
constructor
A new instance of InvalidRecordError.
Constructor Details
#initialize(record) ⇒ InvalidRecordError
Returns a new instance of InvalidRecordError.
6 7 8 9 10 |
# File 'foobara-0.0.110/projects/persistence/src/entity_base/transaction_table.rb', line 6 def initialize(record) self.record = record super("Cannot persist invalid record #{record}: #{record.validation_errors}") end |
Instance Attribute Details
#record ⇒ Object
Returns the value of attribute record.
4 5 6 |
# File 'foobara-0.0.110/projects/persistence/src/entity_base/transaction_table.rb', line 4 def record @record end |