def require_setting(self, name, feature='this feature'):
        """Raises an exception if the given app setting is not defined.

        As a generalization, this method should called from a Consumer's
        :py:meth:`~rejected.consumer.Consumer.initialize` method. If a required
        setting is not found, this method will cause the
        consumer to shutdown prior to receiving any messages from RabbitMQ.

        :param name: The parameter name
        :type name: :class:`str`
        :param feature: A friendly name for the setting feature
        :type feature: :class:`str`
        :raises: :exc:`~rejected.errors.ConfigurationException`

        """
        if name not in self.settings:
            raise ConfigurationException(
                "You must define the '{}' setting in your "
                "application to use {}".format(name, feature))
Raises an exception if the given app setting is not defined.

        As a generalization, this method should called from a Consumer's
        :py:meth:`~rejected.consumer.Consumer.initialize` method. If a required
        setting is not found, this method will cause the
        consumer to shutdown prior to receiving any messages from RabbitMQ.

        :param name: The parameter name
        :type name: :class:`str`
        :param feature: A friendly name for the setting feature
        :type feature: :class:`str`
        :raises: :exc:`~rejected.errors.ConfigurationException`