Exceptions

exception emdb.exceptions.EMDBAPIError(message: str, status_code: int = None, url: str = None)[source]

Bases: EMDBError

Raised when there is an error with the EMDB API call.

exception emdb.exceptions.EMDBError[source]

Bases: Exception

Base exception for all EMDB wrapper errors.

exception emdb.exceptions.EMDBFileNotFoundError(emdb_id: str, filename: str)[source]

Bases: EMDBError

Raised when a requested file in an EMDB entry is not found.

exception emdb.exceptions.EMDBInvalidIDError(emdb_id: str)[source]

Bases: EMDBError

Raised when an invalid EMDB ID is provided.

exception emdb.exceptions.EMDBNetworkError[source]

Bases: EMDBError

Raised for network-related issues (e.g., timeout, DNS failure).

exception emdb.exceptions.EMDBNotFoundError(message: str, status_code: int = None, url: str = None)[source]

Bases: EMDBAPIError

Raised when the requested EMDB entry is not found (404).

exception emdb.exceptions.EMDBRateLimitError(message: str, status_code: int = None, url: str = None)[source]

Bases: EMDBAPIError

Raised when the API rate limit is exceeded.