Add retry for operations based on error codes. The following parameters
operations - A regular expression matching the operations the retry should be for.
errorCodes - A regular expression matching the errorCodes the retry should be for.
maxTries - The maximum number of times the operation will be retried, before
letting the error propogate.
delay - The number of seconds to wait between each retry. The number may be
Note: using the qr// operator to pass regular expressions is the preferred method.