'get_exit_policy(default = UNDEFINED)
Effective ExitPolicy for our relay. This accounts for
ExitPolicyRejectPrivate and default policies.
:param object default: response if the query fails
:returns: :class:`~stem.exit_policy.ExitPolicy` of the tor instance that
we\'re connected to
:raises:
* :class:`stem.ControllerError` if unable to query the policy
* **ValueError** if unable to parse the policy
An exception is only raised if we weren\'t provided a default response.'

@with_default()
def get_exit_policy(self, default=UNDEFINED):

    with self._msg_lock:
        config_policy = self._get_cache('exit_policy')
        if (not config_policy):
            policy = []
            if (self.get_conf('ExitPolicyRejectPrivate') == '1'):
                policy.append('reject    private:*')
            for policy_line in self.get_conf('ExitPolicy', multiple=True):
                policy += policy_line.split(',')
            policy += self.get_info('exit-policy/default').split(',')
            config_policy = stem.exit_policy.get_config_policy(policy, self.get_info('address', None))
            self._set_cache({'exit_policy': config_policy})
        return config_policy
