Exception: PgEventstore::SubscriptionAlreadyLockedError
- Defined in:
- lib/pg_eventstore/errors.rb
Instance Attribute Summary collapse
-
#lock_id ⇒ Object
Returns the value of attribute lock_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#set ⇒ Object
Returns the value of attribute set.
Instance Method Summary collapse
-
#initialize(set, name, lock_id) ⇒ SubscriptionAlreadyLockedError
constructor
A new instance of SubscriptionAlreadyLockedError.
- #user_friendly_message ⇒ String
Methods inherited from Error
Constructor Details
#initialize(set, name, lock_id) ⇒ SubscriptionAlreadyLockedError
Returns a new instance of SubscriptionAlreadyLockedError.
147 148 149 150 151 152 |
# File 'lib/pg_eventstore/errors.rb', line 147 def initialize(set, name, lock_id) @set = set @name = name @lock_id = lock_id super() end |
Instance Attribute Details
#lock_id ⇒ Object
Returns the value of attribute lock_id.
142 143 144 |
# File 'lib/pg_eventstore/errors.rb', line 142 def lock_id @lock_id end |
#name ⇒ Object
Returns the value of attribute name.
139 140 141 |
# File 'lib/pg_eventstore/errors.rb', line 139 def name @name end |
#set ⇒ Object
Returns the value of attribute set.
136 137 138 |
# File 'lib/pg_eventstore/errors.rb', line 136 def set @set end |
Instance Method Details
#user_friendly_message ⇒ String
155 156 157 158 159 160 |
# File 'lib/pg_eventstore/errors.rb', line 155 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 |