class SandthornDriverEventStore::Errors::WrongSnapshotVersionError
Attributes
aggregate[R]
version[R]
Public Class Methods
new(aggregate, version)
click to toggle source
Calls superclass method
# File lib/sandthorn_driver_event_store/errors.rb, line 37 def initialize(aggregate, version) @aggregate = aggregate @version = version super(create_message) end
Public Instance Methods
create_message()
click to toggle source
# File lib/sandthorn_driver_event_store/errors.rb, line 43 def create_message "#{aggregate[:aggregate_type]} with id #{aggregate[:aggregate_id]}: tried to save snapshot with version "+ "#{version}, but current version is at #{aggregate[:aggregate_version]}" end