'Returns a context manager that filters exceptions with a given name.
:param name: Name to compare the local exception name to.'

def ignore_error_by_name(self, name):

    def error_name_matches(err):
        return (self.local_error_name(err) == name)
    return excutils.exception_filter(error_name_matches)
