Class: Qu::Failure::Exceptional::ExceptionData

Inherits:
Exceptional::ExceptionData
  • Object
show all
Defined in:
lib/qu/failure/exceptional.rb

Instance Method Summary collapse

Constructor Details

#initialize(job, exception) ⇒ ExceptionData

Returns a new instance of ExceptionData.



18
19
20
21
# File 'lib/qu/failure/exceptional.rb', line 18

def initialize(job, exception)
  @job = job
  super(exception)
end

Instance Method Details

#extra_stuffObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/qu/failure/exceptional.rb', line 23

def extra_stuff
  {
    'request' => {
      'parameters' => {
        'id'    => @job.id,
        'queue' => @job.queue,
        'args'  => @job.args,
        'class' => @job.klass.to_s
      }
    },

    'rescue_block' => {
      'name'    => @job.klass.to_s
    }
  }
end