DownloadError#
- class deepinv.utils.DownloadError(*args, **kwargs)[source]#
Bases:
RequestExceptionRaised when a network download initiated by deepinv fails.
Wraps any underlying network error (HTTP status, connection failure, SSL error, DNS failure, timeout, …) so that callers — and the test suite in particular — can detect download failures with a single
except DownloadError:rather than enumerating every exception type that the network stack may raise. The original exception is chained via__cause__.Inherits from
requests.exceptions.RequestException(and transitively fromIOError) so existing handlers that catch those broader types keep working.