Exception: PgEventstore::StreamNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/pg_eventstore/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#as_json, #to_h

Constructor Details

#initialize(stream) ⇒ StreamNotFoundError

Returns a new instance of StreamNotFoundError.

Parameters:



30
31
32
33
# File 'lib/pg_eventstore/errors.rb', line 30

def initialize(stream)
  @stream = stream
  super("Stream #{stream.inspect} does not exist.")
end

Instance Attribute Details

#streamObject

Returns the value of attribute stream.



27
28
29
# File 'lib/pg_eventstore/errors.rb', line 27

def stream
  @stream
end