A RetryError encapsulates the last Attempt instance right before giving up.
| 256 | |
| 257 | |
| 258 | class RetryError(Exception): |
| 259 | """ |
| 260 | A RetryError encapsulates the last Attempt instance right before giving up. |
| 261 | """ |
| 262 | |
| 263 | def __init__(self, last_attempt): |
| 264 | self.last_attempt = last_attempt |
| 265 | |
| 266 | def __str__(self): |
| 267 | return "RetryError[{0}]".format(self.last_attempt) |