raiseRetriesExceededError,"Retry condition not met after #{max_attempts}#{'attempt'.pluralize(max_attempts)}"unlessremaining_attempts?(attempts,max_attempts)
unlessremaining_attempts?(attempts,max_attempts)
raise(
RetriesExceededError,
"Retry condition not met after #{max_attempts}#{'attempt'.pluralize(max_attempts)}"
)
end
raiseWaitExceededError,"Wait condition not met after #{max_duration}#{'second'.pluralize(max_duration)}"