3. pybt.utils.exceptions

exception pybt.utils.exceptions.BadRequest(message: str | None = None)

Raised when the request is invalid.

message: str = 'Invalid request passed'
exception pybt.utils.exceptions.ClientException(message: str | None = None)

Base exception for all API client errors.

message: str = 'unhandled error'
exception pybt.utils.exceptions.ConnectionRefused(message: str | None = None)

Raised when connection to the panel is refused.

message: str = 'Connection refused by remote host'
exception pybt.utils.exceptions.EmptyResponse(message: str | None = None)

Raised when the API returns an empty response.

message: str = 'Empty response from API'
exception pybt.utils.exceptions.IPBlocked(message: str | None = None)

Raised when the IP address is blocked.

message: str = 'IP blocked'
exception pybt.utils.exceptions.InvalidAPIKey(message: str | None = None)

Raised when the API key is invalid.

message: str = 'Invalid API key'