Exception: ObjectStorage::ExclusiveLeaseTaken
- Inherits:
-
StandardError
- Object
- StandardError
- ObjectStorage::ExclusiveLeaseTaken
- Defined in:
- app/uploaders/object_storage.rb
Instance Method Summary collapse
-
#initialize(lease_key) ⇒ ExclusiveLeaseTaken
constructor
A new instance of ExclusiveLeaseTaken.
- #message ⇒ Object
Constructor Details
#initialize(lease_key) ⇒ ExclusiveLeaseTaken
Returns a new instance of ExclusiveLeaseTaken.
17 18 19 |
# File 'app/uploaders/object_storage.rb', line 17 def initialize(lease_key) @lease_key = lease_key end |
Instance Method Details
#message ⇒ Object
21 22 23 24 |
# File 'app/uploaders/object_storage.rb', line 21 def *lease_key_group, _ = *@lease_key.split(":") "Exclusive lease for #{lease_key_group.join(':')} is already taken." end |