exceptions.NetworkError
Error during network operations.
Usage
exceptions.NetworkError()Methods
| Name | Description |
|---|---|
| __init__() | Initialize with details about the network failure. |
__init__()
Initialize with details about the network failure.
Usage
__init__(url, status_code=None, reason=None, *args, **kwargs)Parameters
url: str-
URL that failed.
status_code: int | None = None-
HTTP status code if available. Default is None.
reason: str | None = None-
Optional human-readable reason for the failure. Default is None.
*args: Any-
Additional positional arguments forwarded to the base
Exception. **kwargs: Any-
Additional keyword arguments forwarded to the base
Exception.