Exception: Smith::PersistencePayloadConflict

Inherits:
Error
  • Object
show all
Defined in:
lib/smith/persistence_payload_conflict.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:) ⇒ PersistencePayloadConflict

Returns a new instance of PersistencePayloadConflict.



7
8
9
10
# File 'lib/smith/persistence_payload_conflict.rb', line 7

def initialize(key:)
  @key = key
  super("persisted payload conflict for #{key.inspect}: the exact expected payload is no longer current")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/smith/persistence_payload_conflict.rb', line 5

def key
  @key
end