Class: WorkerException

Inherits:
ScoutException
  • Object
show all
Defined in:
lib/scout/work_queue/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(worker_exception, pid) ⇒ WorkerException

Returns a new instance of WorkerException.



14
15
16
17
# File 'lib/scout/work_queue/exceptions.rb', line 14

def initialize(worker_exception, pid)
  @worker_exception = worker_exception
  @pid = pid
end

Instance Attribute Details

#pidObject

Returns the value of attribute pid.



13
14
15
# File 'lib/scout/work_queue/exceptions.rb', line 13

def pid
  @pid
end

#worker_exceptionObject

Returns the value of attribute worker_exception.



13
14
15
# File 'lib/scout/work_queue/exceptions.rb', line 13

def worker_exception
  @worker_exception
end