mirror of
https://github.com/status-im/status-python-sdk.git
synced 2026-08-30 21:51:14 +00:00
- 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`
38 lines
1016 B
Python
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
|