Source code for aleph_client.exceptions

from abc import ABC


[docs]class QueryError(ABC, ValueError): """The result of an API query is inconsistent.""" pass
[docs]class MessageNotFoundError(QueryError): """A message was expected but could not be found.""" pass
[docs]class MultipleMessagesError(QueryError): """Multiple messages were found when a single message is expected.""" pass
[docs]class BroadcastError(Exception): """ Data could not be broadcast to the Aleph network. """ pass
[docs]class InvalidMessageError(BroadcastError): """ The message could not be broadcast because it does not follow the Aleph message specification. """ pass