is_daemon_gone_error


Description:

public static bool is_daemon_gone_error (Error error)

Whether error says the daemon the call went to left the bus rather than refused it: it disconnected without answering, or the name had no owner by the time the call reached the bus.

Such a call says nothing about the history, and daemon_presence announces what comes next, so a caller reporting failures can leave this one out. A bus answers NoReply for a recipient gone; it would also for a reply timing out on the bus, which neither dbus-broker nor dbus-daemon's default configuration does, a slow daemon failing on the caller's own timeout instead.

An unknown method is not one of these, whatever the daemon: a daemon handing the name over moves the presence before any call it fails can be answered (see daemon_presence), and an unknown method otherwise is an older daemon that lacks it.

Parameters:

error

an error a call on a Client failed with

Returns:

whether error is a daemon having gone