module Resque::Failure

def self.create(options = {})

:payload - The job's payload
:queue - The string name of the queue from which the job was pulled
:worker - The Worker object who is reporting the failure
:exception - The Exception object
Expects a hash with the following keys:

Creates a new failure, which is delegated to the appropriate backend.
def self.create(options = {})
  backend.new(*options.values_at(:exception, :worker, :queue, :payload)).save
end