Parent

Methods

ExceptionNotification::Resque

Public Class Methods

count() click to toggle source
# File lib/exception_notification/resque.rb, line 6
def self.count
  Stat[:failed]
end

Public Instance Methods

save() click to toggle source
# File lib/exception_notification/resque.rb, line 10
def save
  data = {
    :failed_at     => Time.now.to_s,
    :queue         => queue,
    :worker        => worker.to_s,
    :payload       => payload,
    :error_class   => exception.class.name,
    :error_message => exception.message
  }

  ExceptionNotifier.notify_exception(exception, :data => { :resque => data })
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.