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.



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

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.



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

def event_id
  @event_id
end