wrapOrPropagateConnectionException

Wraps a connectivity-related exception into an EngineDisconnectedException, or returns the original exception.

Return

EngineDisconnectedException if the throwable is caused by a connectivity issue, otherwise tr.

Parameters

baseDaemon

The daemon which caused the exception.

tr

Throwable object to transform.