Skip to contents

The condition a RemoteSite implementation raises when a transport, authentication, or timeout failure stops it from answering. This is not the same event as returning NA, which means the requested theta is non-evaluable at a site that answered perfectly well; see the contract in RemoteSite. Raising it aborts the round rather than silently changing the set of sites being summed over.

Usage

site_unavailable(message, site = NULL, parent = NULL)

Arguments

message

what went wrong, for the caller.

site

optionally, the Site that was unreachable; its name is added to the message by master_aggregate().

parent

optionally, the underlying condition (an httr2 error, say) to chain for debugging.

Value

nothing — called for its side effect of signaling a condition of class homomorpheR_site_unavailable.

What the re-raised condition carries

When master_aggregate() or decrypt() re-raise this, the condition they signal carries a site_name field and not the site object. A LocalSite would drag its data, and under threshold keys its key share, into anything that logs or serializes the condition. Catch on the class and read cnd$site_name.