substituteErrorWithAttempt

If true, calls to onError will have their cause replaced with cancellationAttempt if it is set.

This has no effect if allowAttempts is set to false.