Files
status-python-sdk/bot/exceptions.py
T
Nick Ninov 75051e2c98 wallet: Add Infura Token
- Wallet usage can be broken down into 3 parts - transactions (Alchemy), prices (Coingecko) and Ethereum RPC calls (Infura).
- Related to https://github.com/status-im/status-python-sdk/issues/3
2026-06-23 08:01:37 +03:00

38 lines
997 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 method without setting an `infura_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 (display_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