Exceptions
- exception emdb.exceptions.EMDBAPIError(message: str, status_code: int = None, url: str = None)[source]
Bases:
EMDBErrorRaised when there is an error with the EMDB API call.
- exception emdb.exceptions.EMDBError[source]
Bases:
ExceptionBase exception for all EMDB wrapper errors.
- exception emdb.exceptions.EMDBFileNotFoundError(emdb_id: str, filename: str)[source]
Bases:
EMDBErrorRaised when a requested file in an EMDB entry is not found.
- exception emdb.exceptions.EMDBInvalidIDError(emdb_id: str)[source]
Bases:
EMDBErrorRaised when an invalid EMDB ID is provided.
- exception emdb.exceptions.EMDBNetworkError[source]
Bases:
EMDBErrorRaised for network-related issues (e.g., timeout, DNS failure).
- exception emdb.exceptions.EMDBNotFoundError(message: str, status_code: int = None, url: str = None)[source]
Bases:
EMDBAPIErrorRaised when the requested EMDB entry is not found (404).
- exception emdb.exceptions.EMDBRateLimitError(message: str, status_code: int = None, url: str = None)[source]
Bases:
EMDBAPIErrorRaised when the API rate limit is exceeded.