lib/resque/plugins/retry.rb
# Convenience method to test whether you may retry on a given
# exception
#
# @param [Exception] an instance of Exception. Deprecated: can
# also be a Class
#
# @return [Boolean]
#
# @api public
Convenience method to test whether you may retry on a given
exception
Convenience method to test whether you may retry on a given exception
def retry_exception?(exception)
        return true if retry_exceptions.nil?
        !! retry_exceptions.any? do |ex|
          if exception.is_a?(Class)
            ex >= exception
          else
            ex === exception
          end
        end
      end
def retry_exception? ( exception ) return true if retry_exceptions . nil? ! ! retry_exceptions . any? do | ex | if exception . is_a? ( Class ) ex >= exception else ex === exception end end end
Convenience method to test whether you may retry on a given
exception
Convenience method to test whether you may retry on a given exception
None
Boolean
exception
<not_specific>
<not_specific>
an instance of Exception. Deprecated: can also be a Class
an instance of Exception . Deprecated : can also be a Class
api
None