class KPM::NexusFacade::Actions
def retry_exceptions(tag)
def retry_exceptions(tag) retries = DEFAULT_RETRIES begin yield rescue *DEFAULT_CONNECTION_ERRORS.keys => e retries -= 1 @logger.warn(format('Transient error during %<tag>s, retrying (attempt=%<attempt>d): %<msg>s', tag: tag, attempt: DEFAULT_RETRIES - retries, msg: derived_error_message(DEFAULT_CONNECTION_ERRORS, e))) retry unless retries.zero? raise end end