Exception: PgEventstore::WrongLockIdError
- Defined in:
- lib/pg_eventstore/errors.rb,
sig/pg_eventstore/errors.rbs
Instance Attribute Summary collapse
-
#lock_id ⇒ Integer
Returns the value of attribute lock_id.
-
#name ⇒ String
Returns the value of attribute name.
-
#set ⇒ String
Returns the value of attribute set.
Instance Method Summary collapse
-
#initialize(set, name, lock_id) ⇒ WrongLockIdError
constructor
@param
set— subscriptions set name. - #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(set, name, lock_id) ⇒ WrongLockIdError
@param set — subscriptions set name
@param name — subscription's name
@param lock_id
300 301 302 303 304 305 |
# File 'lib/pg_eventstore/errors.rb', line 300 def initialize(set, name, lock_id) @set = set @name = name @lock_id = lock_id super() end |
Instance Attribute Details
#lock_id ⇒ Integer
Returns the value of attribute lock_id.
295 296 297 |
# File 'lib/pg_eventstore/errors.rb', line 295 def lock_id @lock_id end |
#name ⇒ String
Returns the value of attribute name.
292 293 294 |
# File 'lib/pg_eventstore/errors.rb', line 292 def name @name end |
#set ⇒ String
Returns the value of attribute set.
289 290 291 |
# File 'lib/pg_eventstore/errors.rb', line 289 def set @set end |
Instance Method Details
#user_friendly_message ⇒ String
308 309 310 311 312 313 |
# File 'lib/pg_eventstore/errors.rb', line 308 def <<~TEXT.strip Could not update subscription from #{set.inspect} set with #{name.inspect} name. It is locked by \ ##{lock_id.inspect} set suddenly. TEXT end |