Exception: PgEventstore::SystemStreamError

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) ⇒ SystemStreamError

Returns a new instance of SystemStreamError.

Parameters:



42
43
44
45
# File 'lib/pg_eventstore/errors.rb', line 42

def initialize(stream)
  @stream = stream
  super("Stream #{stream.inspect} is a system stream and can't be used to append events.")
end

Instance Attribute Details

#streamObject

Returns the value of attribute stream.



39
40
41
# File 'lib/pg_eventstore/errors.rb', line 39

def stream
  @stream
end