Exception: Resque::DirtyExit

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/resque/errors.rb

Overview

Raised when a worker was killed while processing a job.

Direct Known Subclasses

PruneDeadWorkerDirtyExit

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, process_status = nil) ⇒ DirtyExit

Returns a new instance of DirtyExit.



12
13
14
15
# File 'lib/resque/errors.rb', line 12

def initialize(message=nil, process_status=nil)
  @process_status = process_status
  super message
end

Instance Attribute Details

#process_statusObject (readonly)

Returns the value of attribute process_status.



10
11
12
# File 'lib/resque/errors.rb', line 10

def process_status
  @process_status
end