

def _handle_exception(self, invocation, error, traceback=None):
    if self.logger.isEnabledFor(logging.DEBUG):
        self.logger.debug('Got exception for request %s: %s: %s', invocation.request, type(error).__name__, error)
    if isinstance(error, (AuthenticationError, IOError, HazelcastInstanceNotActiveError)):
        if self._try_retry(invocation):
            return
    if is_retryable_error(error):
        if (invocation.request.is_retryable() or invocation._is_redo_operation):
            if self._try_retry(invocation):
                return
    invocation.set_exception(error, traceback)

dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/invocation.py InvocationService._handle_exception/VarMisuse@103/151 `self`->`invocation`