Added the ability to change the args based on the exception

I added the ability to change the args based on the exception. See the change to README.md for details about how it's used.
The `dynamic` part of the method name "feels" wrong to me.

Perhaps something like `args_for_retry_exception` would be clearer?