Exception: Sequent::Core::EventStore::DeserializeEventError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sequent/core/event_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_hash) ⇒ DeserializeEventError

Returns a new instance of DeserializeEventError.



24
25
26
27
# File 'lib/sequent/core/event_store.rb', line 24

def initialize(event_hash)
  super()
  @event_hash = event_hash
end

Instance Attribute Details

#event_hashObject (readonly)

Returns the value of attribute event_hash.



22
23
24
# File 'lib/sequent/core/event_store.rb', line 22

def event_hash
  @event_hash
end

Instance Method Details

#messageObject



29
30
31
# File 'lib/sequent/core/event_store.rb', line 29

def message
  "Event hash: #{event_hash.inspect}\nCause: #{cause.inspect}"
end