Exception: EventStoreClient::StreamNotFoundError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#as_json, #to_h

Constructor Details

#initialize(stream_name) ⇒ StreamNotFoundError

Returns a new instance of StreamNotFoundError.

Parameters:

  • stream_name (String)


28
29
30
31
# File 'lib/event_store_client/errors.rb', line 28

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

Instance Attribute Details

#stream_nameObject (readonly)

Returns the value of attribute stream_name.



25
26
27
# File 'lib/event_store_client/errors.rb', line 25

def stream_name
  @stream_name
end