Exceptions Reference
All custom exceptions raised by aioshad.
Base Exception
-
exception aioshad.exceptions.AioshadError[source]
Base exception for all aioshad-related errors.
Network & Protocol Exceptions
-
exception aioshad.exceptions.NetworkError(status: str, message: str = '')[source]
Exception raised when an HTTP, connection, or transport error occurs.
API & Telegram/Shad Errors
-
exception aioshad.exceptions.ShadAPIError(status: str, status_det: str = '', message: str = '')[source]
Exception raised when the Shad API returns a non-OK status.
-
exception aioshad.exceptions.FloodWaitError(wait_seconds: int = 5, status_det: str = '')[source]
Raised when hit by Shad rate limiting / flood protection.
Authentication Exceptions
-
exception aioshad.exceptions.InvalidAuthError(status: str, status_det: str = '', message: str = '')[source]
Raised when the session authentication key is invalid or revoked.
-
exception aioshad.exceptions.NotRegisteredError(status: str, status_det: str = '', message: str = '')[source]
Raised when the client device is not registered.