Exception: PgEventstore::TooManyRecordsToLockError
- Defined in:
- lib/pg_eventstore/errors.rb
Instance Attribute Summary collapse
-
#number_of_records ⇒ Object
readonly
Returns the value of attribute number_of_records.
-
#stream ⇒ Object
readonly
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.
236 237 238 239 240 |
# File 'lib/pg_eventstore/errors.rb', line 236 def initialize(stream, number_of_records) @stream = stream @number_of_records = number_of_records super() end |
Instance Attribute Details
#number_of_records ⇒ Object (readonly)
Returns the value of attribute number_of_records.
232 233 234 |
# File 'lib/pg_eventstore/errors.rb', line 232 def number_of_records @number_of_records end |
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
231 232 233 |
# File 'lib/pg_eventstore/errors.rb', line 231 def stream @stream end |
Instance Method Details
#user_friendly_message ⇒ String
243 244 245 |
# File 'lib/pg_eventstore/errors.rb', line 243 def "Too many records of #{stream.to_hash.inspect} stream to lock: #{number_of_records}" end |