@staticmethod
    def _resolve_exception(matches):
        while len(matches) > 1:
            first = matches[0]
            second = matches[1]
            if issubclass(first, second):
                del matches[1]
            else:
                del matches[0]
        return matches[0]
We want the most specific exception class.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/servers.py/Controller._resolve_exception