Files
status-python-sdk/status_sdk/exceptions.py
T
Nick Ninov 9626c9ed1b PyPI: PIP setup
- Rename repository from `bot` to `status_sdk`
- Add `pyproject.toml` file
- Update code documentation
- Move `docker-compose.yaml` in folder `status_sdk`
- Update `Account` docker volume paths
- Update Agent example
- Add `volume_folder` to `Account`
2026-07-15 15:04:22 +03:00

38 lines
1016 B
Python

from typing import Optional
class BackendError(Exception):
pass
class NotLoggedInError(Exception):
def __init__(self):
super().__init__("Make sure you are logged in to your Status account with login() first...")
class WalletNotConfiguredError(Exception):
def __init__(self, msg: Optional[str] = None):
super().__init__(msg or "Cannot use this wallet method without setting `infura_token`, `alchemy_token` and `coingecko_api_key` when calling `login`.")
class InvalidDisplayNameError(ValueError):
pass
class InvalidContactError(ValueError):
def __init__(self, msg: Optional[str] = None):
super().__init__(msg or "Please provide either a Key Unique Identifier (key_uid) or a Display Name / ENS (name)...")
class InvalidCurrencyError(Exception):
pass
class InvalidTokenError(Exception):
pass
class BackupError(Exception):
pass
class ProfilePictureError(Exception):
pass
class DockerError(Exception):
pass
class SignalError(Exception):
pass