Currently there is no way to add custom error behavior in the Retry module.
For example we might want to stop after a single retry if the error that we got from the underlying http transport is NotFound error.
Allowing the user to provide a callback that will be used to check the errors can solve this in a clean way.
Currently there is no way to add custom error behavior in the Retry module.
For example we might want to stop after a single retry if the error that we got from the underlying http transport is NotFound error.
Allowing the user to provide a callback that will be used to check the errors can solve this in a clean way.