def retriable_errors(*errors)
      message = 'All retriable errors must be StandardError decendants'
      raise ArgumentError, message unless errors.all? { |e| e <= StandardError }
      self.retriable = errors
    end
def retriable_errors(*errors)
      message = 'All retriable errors must be StandardError decendants'
      raise ArgumentError, message unless errors.all? { |e| e <= StandardError }
      self.retriable = errors
    end
Sets list of errors on which the block will retry.

 Example:
   class PizzaService
     include Take2
     retriable_errors Net::HTTPRetriableError, Errno::ECONNRESET
   end
 Arguments:
   errors: List of retiable errors