Sha256: 131d6b4159bcec8a11379cc76cf0dbc9ed09fcc0e35aea2791488edb4814c937

Contents?: true

Size: 355 Bytes

Versions: 9

Compression:

Stored size: 355 Bytes

Contents

class DoneProcessing < Exception
  attr_accessor :pid
  def initialize(pid = Process.pid)
    @pid = pid
  end

  def message
    "Done processing pid #{pid}"
  end
end

class WorkerException < ScoutException
  attr_accessor :worker_exception, :pid
  def initialize(worker_exception, pid)
    @worker_exception = worker_exception
    @pid = pid
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scout-gear-10.7.3 lib/scout/work_queue/exceptions.rb
scout-gear-10.7.2 lib/scout/work_queue/exceptions.rb
scout-gear-10.7.1 lib/scout/work_queue/exceptions.rb
scout-gear-10.7.0 lib/scout/work_queue/exceptions.rb
scout-gear-10.4.0 lib/scout/work_queue/exceptions.rb
scout-gear-10.3.0 lib/scout/work_queue/exceptions.rb
scout-gear-10.2.0 lib/scout/work_queue/exceptions.rb
scout-gear-10.1.0 lib/scout/work_queue/exceptions.rb
scout-gear-10.0.1 lib/scout/work_queue/exceptions.rb