Source code for async_substrate_interface.errors
from websockets.exceptions import ConnectionClosed, InvalidHandshake
ConnectionClosed = ConnectionClosed
InvalidHandshake = InvalidHandshake
[docs]
class SubstrateRequestException(Exception):
pass
class MaxRetriesExceeded(SubstrateRequestException):
pass
class MetadataAtVersionNotFound(SubstrateRequestException):
def __init__(self):
message = (
"Exported method Metadata_metadata_at_version is not found. This indicates the block is quite old, and is"
"not supported by async-substrate-interface. If you need this, we recommend using the legacy "
"substrate-interface (https://github.com/JAMdotTech/py-polkadot-sdk)."
)
super().__init__(message)
[docs]
class StorageFunctionNotFound(ValueError):
pass
[docs]
class BlockNotFound(Exception):
pass
[docs]
class ExtrinsicNotFound(Exception):
pass