Exception: Joblin::Uniqueness::CouldNotLockError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/joblin/uniqueness/job_uniqueness.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lock_context, source:) ⇒ CouldNotLockError

Returns a new instance of CouldNotLockError.



29
30
31
32
33
# File 'lib/joblin/uniqueness/job_uniqueness.rb', line 29

def initialize(lock_context, source:)
  super()
  @lock_context = lock_context
  @source = source
end

Instance Attribute Details

#lock_contextObject (readonly)

Returns the value of attribute lock_context.



27
28
29
# File 'lib/joblin/uniqueness/job_uniqueness.rb', line 27

def lock_context
  @lock_context
end

#sourceObject (readonly)

Returns the value of attribute source.



27
28
29
# File 'lib/joblin/uniqueness/job_uniqueness.rb', line 27

def source
  @source
end