Exception: PgEventstore::MissingPartitions

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, event_types) ⇒ MissingPartitions

Returns a new instance of MissingPartitions.

Parameters:



220
221
222
223
224
# File 'lib/pg_eventstore/errors.rb', line 220

def initialize(stream, event_types)
  @stream = stream
  @event_types = event_types
  super("Missing partitions for stream #{stream.inspect}, event types #{event_types.inspect}")
end

Instance Attribute Details

#event_typesObject

Returns the value of attribute event_types.



216
217
218
# File 'lib/pg_eventstore/errors.rb', line 216

def event_types
  @event_types
end

#streamObject

Returns the value of attribute stream.



213
214
215
# File 'lib/pg_eventstore/errors.rb', line 213

def stream
  @stream
end