Exception: PgEventstore::TooManyRecordsToLockError
- Defined in:
- lib/pg_eventstore/errors.rb,
sig/pg_eventstore/errors.rbs
Instance Attribute Summary collapse
-
#number_of_records ⇒ Integer
Returns the value of attribute number_of_records.
-
#stream ⇒ Stream
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream, number_of_records) ⇒ TooManyRecordsToLockError
constructor
A new instance of TooManyRecordsToLockError.
- #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(stream, number_of_records) ⇒ TooManyRecordsToLockError
Returns a new instance of TooManyRecordsToLockError.
359 360 361 362 363 |
# File 'lib/pg_eventstore/errors.rb', line 359 def initialize(stream, number_of_records) @stream = stream @number_of_records = number_of_records super() end |
Instance Attribute Details
#number_of_records ⇒ Integer
Returns the value of attribute number_of_records.
355 356 357 |
# File 'lib/pg_eventstore/errors.rb', line 355 def number_of_records @number_of_records end |
#stream ⇒ Stream
Returns the value of attribute stream.
354 355 356 |
# File 'lib/pg_eventstore/errors.rb', line 354 def stream @stream end |
Instance Method Details
#user_friendly_message ⇒ String
366 367 368 |
# File 'lib/pg_eventstore/errors.rb', line 366 def "Too many records of #{stream.to_hash.inspect} stream to lock: #{number_of_records}" end |