# -*- coding: utf-8 -*-
Retry error raised by this library will be an instance of this class.
Retry originated errors internally raised by `riprova` will be
an instance of `RetryError` class.
Retry error raised when a maximum of retry attempts is exceeded, reported
by the backoff strategy being used.
Custom retry timeout error internally used by `riprova` when a task
exceeds the maximum time execution limit.
Utility error class that can be inherited by developers for those cases
where the error should be ignored by `riprova` retry engine.
__retry__ (bool): optional magic attribute inferred by `riprova` in
order to determine when an error should be retried or not.
You can optionally flag any error exception with this magic
attribute in order to modify the retry behaviour.
Defaults to `False`.
# Raised exception with the following ignored won't be retried
# by riprova
# You can optionally reverse that behaviour for specific cases
# by defining the `__retry__` magic attribute as `True`
__retry__ = True
__retry__ = False