Class: Async::ErrorReporting

Inherits:
Object
  • Object
show all
Defined in:
lib/async.rb

Overview

TODO: test this

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.handlerObject

Returns the value of attribute handler.



64
65
66
# File 'lib/async.rb', line 64

def handler
  @handler
end

Class Method Details

.notify_exception(e, job_args) ⇒ Object



66
67
68
# File 'lib/async.rb', line 66

def self.notify_exception(e, job_args)
  handler && handler.call(e, job_args)
end