bittensor.errors#

Exceptions#

ChainError

Base error for any chain related errors.

ChainConnectionError

Error for any chain connection related errors.

ChainTransactionError

Error for any chain transaction related errors.

ChainQueryError

Error for any chain query related errors.

StakeError

Error raised when a stake transaction fails.

UnstakeError

Error raised when an unstake transaction fails.

IdentityError

Error raised when an identity transaction fails.

NominationError

Error raised when a nomination transaction fails.

TakeError

Error raised when a increase / decrease take transaction fails.

TransferError

Error raised when a transfer transaction fails.

RegistrationError

Error raised when a neuron registration transaction fails.

NotRegisteredError

Error raised when a neuron is not registered, and the transaction requires it to be.

NotDelegateError

Error raised when a hotkey you are trying to stake to is not a delegate.

KeyFileError

Error thrown when the keyfile is corrupt, non-writable, non-readable or the password used to decrypt is invalid.

MetadataError

Error raised when metadata commitment transaction fails.

InvalidRequestNameError

This exception is raised when the request name is invalid. Ususally indicates a broken URL.

SynapseException

Common base class for all non-exit exceptions.

UnknownSynapseError

This exception is raised when the request name is not found in the Axon's forward_fns dictionary.

SynapseParsingError

This exception is raised when the request headers are unable to be parsed into the synapse type.

NotVerifiedException

This exception is raised when the request is not verified.

BlacklistedException

This exception is raised when the request is blacklisted.

PriorityException

This exception is raised when the request priority is not met.

PostProcessException

This exception is raised when the response headers cannot be updated.

RunException

This exception is raised when the requested function cannot be executed. Indicates a server error.

InternalServerError

This exception is raised when the requested function fails on the server. Indicates a server error.

SynapseDendriteNoneException

Common base class for all non-exit exceptions.

Module Contents#

exception bittensor.errors.ChainError[source]#

Bases: BaseException

Base error for any chain related errors.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.ChainConnectionError[source]#

Bases: ChainError

Error for any chain connection related errors.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.ChainTransactionError[source]#

Bases: ChainError

Error for any chain transaction related errors.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.ChainQueryError[source]#

Bases: ChainError

Error for any chain query related errors.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.StakeError[source]#

Bases: ChainTransactionError

Error raised when a stake transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.UnstakeError[source]#

Bases: ChainTransactionError

Error raised when an unstake transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.IdentityError[source]#

Bases: ChainTransactionError

Error raised when an identity transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.NominationError[source]#

Bases: ChainTransactionError

Error raised when a nomination transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.TakeError[source]#

Bases: ChainTransactionError

Error raised when a increase / decrease take transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.TransferError[source]#

Bases: ChainTransactionError

Error raised when a transfer transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.RegistrationError[source]#

Bases: ChainTransactionError

Error raised when a neuron registration transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.NotRegisteredError[source]#

Bases: ChainTransactionError

Error raised when a neuron is not registered, and the transaction requires it to be.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.NotDelegateError[source]#

Bases: StakeError

Error raised when a hotkey you are trying to stake to is not a delegate.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.KeyFileError[source]#

Bases: Exception

Error thrown when the keyfile is corrupt, non-writable, non-readable or the password used to decrypt is invalid.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.MetadataError[source]#

Bases: ChainTransactionError

Error raised when metadata commitment transaction fails.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.InvalidRequestNameError[source]#

Bases: Exception

This exception is raised when the request name is invalid. Ususally indicates a broken URL.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.SynapseException(message='Synapse Exception', synapse=None)[source]#

Bases: Exception

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

message#
synapse#
exception bittensor.errors.UnknownSynapseError(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the request name is not found in the Axon’s forward_fns dictionary.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.SynapseParsingError[source]#

Bases: Exception

This exception is raised when the request headers are unable to be parsed into the synapse type.

Initialize self. See help(type(self)) for accurate signature.

exception bittensor.errors.NotVerifiedException(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the request is not verified.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.BlacklistedException(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the request is blacklisted.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.PriorityException(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the request priority is not met.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.PostProcessException(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the response headers cannot be updated.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.RunException(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the requested function cannot be executed. Indicates a server error.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.InternalServerError(message='Synapse Exception', synapse=None)[source]#

Bases: SynapseException

This exception is raised when the requested function fails on the server. Indicates a server error.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

exception bittensor.errors.SynapseDendriteNoneException(message='Synapse Dendrite is None', synapse=None)[source]#

Bases: SynapseException

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

synapse (bittensor.Synapse | None)

message#