Exception: RubyEventStore::EventNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_event_store/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_id) ⇒ EventNotFound

Returns a new instance of EventNotFound.



13
14
15
16
# File 'lib/ruby_event_store/errors.rb', line 13

def initialize(event_id)
  super("Event not found: #{event_id}")
  @event_id = event_id
end

Instance Attribute Details

#event_idObject (readonly)

Returns the value of attribute event_id.



12
13
14
# File 'lib/ruby_event_store/errors.rb', line 12

def event_id
  @event_id
end