Class: RubyEventStore::EventNotFound

Inherits:
Error
  • 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.


20
21
22
23
# File 'lib/ruby_event_store/errors.rb', line 20

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.


18
19
20
# File 'lib/ruby_event_store/errors.rb', line 18

def event_id
  @event_id
end