Exception: PgEventstore::SubscriptionAlreadyLockedError
- 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) ⇒ SubscriptionAlreadyLockedError
constructor
@param
set— subscriptions set name. - #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(set, name, lock_id) ⇒ SubscriptionAlreadyLockedError
@param set — subscriptions set name
@param name — subscription's name
@param lock_id
270 271 272 273 274 275 |
# File 'lib/pg_eventstore/errors.rb', line 270 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.
265 266 267 |
# File 'lib/pg_eventstore/errors.rb', line 265 def lock_id @lock_id end |
#name ⇒ String
Returns the value of attribute name.
262 263 264 |
# File 'lib/pg_eventstore/errors.rb', line 262 def name @name end |
#set ⇒ String
Returns the value of attribute set.
259 260 261 |
# File 'lib/pg_eventstore/errors.rb', line 259 def set @set end |
Instance Method Details
#user_friendly_message ⇒ String
278 279 280 281 282 283 |
# File 'lib/pg_eventstore/errors.rb', line 278 def <<~TEXT.strip Could not lock subscription from #{set.inspect} set with #{name.inspect} name. It is already locked by \ ##{lock_id.inspect} set. TEXT end |