bittensor.core.errors#

Exceptions#

BlacklistedException

This exception is raised when the request is blacklisted.

ChainConnectionError

Error for any chain connection related errors.

ChainError

Base error for any chain related errors.

ChainQueryError

Error for any chain query related errors.

ChainTransactionError

Error for any chain transaction related errors.

IdentityError

Error raised when an identity transaction fails.

InternalServerError

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

InvalidRequestNameError

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

MetadataError

Error raised when metadata commitment transaction fails.

NominationError

Error raised when a nomination transaction fails.

NotDelegateError

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

NotRegisteredError

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

NotVerifiedException

This exception is raised when the request is not verified.

PostProcessException

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

PriorityException

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

RegistrationError

Error raised when a neuron registration transaction fails.

RunException

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

StakeError

Error raised when a stake transaction fails.

SynapseDendriteNoneException

Common base class for all non-exit exceptions.

SynapseException

Common base class for all non-exit exceptions.

SynapseParsingError

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

TakeError

Error raised when an increase / decrease take transaction fails.

TransferError

Error raised when a transfer transaction fails.

UnknownSynapseError

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

UnstakeError

Error raised when an unstake transaction fails.

Module Contents#

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

Bases: SynapseException

This exception is raised when the request is blacklisted.

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

Parameters:

synapse (bittensor.core.synapse.Synapse | None)

exception bittensor.core.errors.ChainConnectionError#

Bases: ChainError

Error for any chain connection related errors.

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

exception bittensor.core.errors.ChainError#

Bases: BaseException

Base error for any chain related errors.

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

exception bittensor.core.errors.ChainQueryError#

Bases: ChainError

Error for any chain query related errors.

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

exception bittensor.core.errors.ChainTransactionError#

Bases: ChainError

Error for any chain transaction related errors.

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

exception bittensor.core.errors.IdentityError#

Bases: ChainTransactionError

Error raised when an identity transaction fails.

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

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

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.core.synapse.Synapse | None)

exception bittensor.core.errors.InvalidRequestNameError#

Bases: Exception

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

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

exception bittensor.core.errors.MetadataError#

Bases: ChainTransactionError

Error raised when metadata commitment transaction fails.

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

exception bittensor.core.errors.NominationError#

Bases: ChainTransactionError

Error raised when a nomination transaction fails.

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

exception bittensor.core.errors.NotDelegateError#

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.core.errors.NotRegisteredError#

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.core.errors.NotVerifiedException(message='Synapse Exception', synapse=None)#

Bases: SynapseException

This exception is raised when the request is not verified.

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

Parameters:

synapse (bittensor.core.synapse.Synapse | None)

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

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.core.synapse.Synapse | None)

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

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.core.synapse.Synapse | None)

exception bittensor.core.errors.RegistrationError#

Bases: ChainTransactionError

Error raised when a neuron registration transaction fails.

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

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

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.core.synapse.Synapse | None)

exception bittensor.core.errors.StakeError#

Bases: ChainTransactionError

Error raised when a stake transaction fails.

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

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

Bases: SynapseException

Common base class for all non-exit exceptions.

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

Parameters:

synapse (bittensor.core.synapse.Synapse | None)

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

Bases: Exception

Common base class for all non-exit exceptions.

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

Parameters:

synapse (bittensor.core.synapse.Synapse | None)

message#
synapse#
exception bittensor.core.errors.SynapseParsingError#

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.core.errors.TakeError#

Bases: ChainTransactionError

Error raised when an increase / decrease take transaction fails.

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

exception bittensor.core.errors.TransferError#

Bases: ChainTransactionError

Error raised when a transfer transaction fails.

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

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

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.core.synapse.Synapse | None)

exception bittensor.core.errors.UnstakeError#

Bases: ChainTransactionError

Error raised when an unstake transaction fails.

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