## exceptions.NetworkError


Error during network operations.


Usage

``` python
exceptions.NetworkError(
    url,
    status_code=None,
    reason=None,
    *args,
    **kwargs,
)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize with details about the network failure. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Initialize with details about the network failure.


Usage

``` python
__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`.
