@contextlib.contextmanager
def remove_path_on_error(path):
    try:
        yield
    except Exception:
        with excutils.save_and_reraise_exception():
            delete_if_exists(path)
Given a deserialized JavaObject as returned by the javaobj library, determine whether it's a subclass of the given class name.
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/openstack/common/fileutils.py/remove_path_on_error--crossover with--dataset/ETHPy150Open doublereedkurt/pyjks/jks/jks.py/_java_is_subclass