Exception: Foobara::Persistence::InvalidRecordError

Inherits:
StandardError
  • Object
show all
Defined in:
foobara-0.0.110/projects/persistence/src/entity_base/transaction_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#recordObject

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