Exception: PgEventstore::MissingPartitions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#as_json, #to_h

Constructor Details

#initialize(stream, event_types) ⇒ MissingPartitions

@param stream

@param event_types

Parameters:

  • stream (Stream)
  • event_types (::Array[String])


343
344
345
346
347
# File 'lib/pg_eventstore/errors.rb', line 343

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_types::Array[String]

Returns the value of attribute event_types.

Returns:

  • (::Array[String])


339
340
341
# File 'lib/pg_eventstore/errors.rb', line 339

def event_types
  @event_types
end

#streamStream

Returns the value of attribute stream.

Returns:



336
337
338
# File 'lib/pg_eventstore/errors.rb', line 336

def stream
  @stream
end