# X402AlgorandError

> Base class for all exceptions raised by x402-algorand.

```python
from x402_algorand import X402AlgorandError
```

```python
class X402AlgorandError(Exception)
```

Base class for all exceptions raised by x402-algorand.

## Examples

```python
from x402_algorand import X402AlgorandError, normalize_network

try:
    normalize_network("ethereum")
except X402AlgorandError as e:  # any error raised by x402-algorand
    print(type(e).__name__, e)  # NetworkError Unsupported network: ethereum
```

Source: [x402_algorand/errors.py](https://github.com/x402-avm/x402-algorand/blob/main/x402_algorand/errors.py#L27)

Source: https://x402-avm.github.io/reference/python/x402-algorand/x402-algorand-error
