Source code for aleph.exceptions

from __future__ import annotations


[docs] class AlephException(Exception): ...
[docs] class AlephStorageException(AlephException): """ Base exception class for all errors related to the storage and retrieval of Aleph messages. """ ...
[docs] class InvalidConfigException(AlephException): ...
[docs] class KeyNotFoundException(AlephException): ...
[docs] class InvalidContent(AlephStorageException): """ The content requested by the user is invalid. Examples: * its integrity is compromised * it does not match the Aleph message specification. """ ...
[docs] class ContentCurrentlyUnavailable(AlephStorageException): """ The content is currently unavailable, for example because of a synchronisation issue. """ ...
[docs] class UnknownHashError(AlephException): ...