bittensor.core.errors#
Attributes#
Exceptions#
This exception is raised when the request is blacklisted. |
|
Error for any chain connection related errors. |
|
Base error for any chain related errors. |
|
Error for any chain query related errors. |
|
Error for any chain transaction related errors. |
|
Delegate take is too high. |
|
Delegate take is too low. |
|
A transactor exceeded the rate limit for delegate transaction. |
|
Duplicate child when setting children. |
|
The hotkey does not exist. |
|
Error raised when an identity transaction fails. |
|
This exception is raised when the requested function fails on the server. Indicates a server error. |
|
Attempting to set an invalid child for a hotkey on a network. |
|
This exception is raised when the request name is invalid. Usually indicates a broken URL. |
|
Raised when the POW Solver has reached the max number of attempts. |
|
Raised when the POW Solver has reached the max number of successful solutions. |
|
Error raised when metadata commitment transaction fails. |
|
Error raised when a nomination transaction fails. |
|
Request to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account. |
|
Error raised when a hotkey you are trying to stake to is not a delegate. |
|
The parent hotkey doesn't have enough own stake to set childkeys. |
|
Error raised when a neuron is not registered, and the transaction requires it to be. |
|
This exception is raised when the request is not verified. |
|
This exception is raised when the response headers cannot be updated. |
|
This exception is raised when the request priority is not met. |
|
Proportion overflow when setting children. |
|
Error raised when a neuron registration transaction fails. |
|
Operation is not permitted on the root subnet. |
|
This exception is raised when the requested function cannot be executed. Indicates a server error. |
|
Error raised when a stake transaction fails. |
|
The subnet does not exist. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
This exception is raised when the request headers are unable to be parsed into the synapse type. |
|
Error raised when an increase / decrease take transaction fails. |
|
Too many children MAX 5. |
|
Error raised when a transfer transaction fails. |
|
Default transaction rate limit exceeded. |
|
This exception is raised when the request name is not found in the Axon's forward_fns dictionary. |
|
Error raised when an unstake transaction fails. |
Module Contents#
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.errors.ChainConnectionError[source]#
Bases:
ChainError
Error for any chain connection related errors.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.ChainError[source]#
Bases:
SubstrateRequestException
Base error for any chain related errors.
Initialize self. See help(type(self)) for accurate signature.
- classmethod from_error(error)#
- exception bittensor.core.errors.ChainQueryError[source]#
Bases:
ChainError
Error for any chain query related errors.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.ChainTransactionError[source]#
Bases:
ChainError
Error for any chain transaction related errors.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.DelegateTakeTooHigh#
Bases:
ChainTransactionError
Delegate take is too high.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.DelegateTakeTooLow#
Bases:
ChainTransactionError
Delegate take is too low.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.DelegateTxRateLimitExceeded#
Bases:
TxRateLimitExceeded
A transactor exceeded the rate limit for delegate transaction.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.DuplicateChild#
Bases:
ChainTransactionError
Duplicate child when setting children.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.HotKeyAccountNotExists#
Bases:
ChainTransactionError
The hotkey does not exist.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.IdentityError[source]#
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)[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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.errors.InvalidChild#
Bases:
ChainTransactionError
Attempting to set an invalid child for a hotkey on a network.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.InvalidRequestNameError[source]#
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.MaxAttemptsException[source]#
Bases:
Exception
Raised when the POW Solver has reached the max number of attempts.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.MaxSuccessException[source]#
Bases:
Exception
Raised when the POW Solver has reached the max number of successful solutions.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.MetadataError[source]#
Bases:
ChainTransactionError
Error raised when metadata commitment transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.NominationError[source]#
Bases:
ChainTransactionError
Error raised when a nomination transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.NonAssociatedColdKey#
Bases:
ChainTransactionError
Request to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.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.core.errors.NotEnoughStakeToSetChildkeys#
Bases:
ChainTransactionError
The parent hotkey doesn’t have enough own stake to set childkeys.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.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.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.errors.ProportionOverflow#
Bases:
ChainTransactionError
Proportion overflow when setting children.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.RegistrationError[source]#
Bases:
ChainTransactionError
Error raised when a neuron registration transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.RegistrationNotPermittedOnRootSubnet#
Bases:
ChainTransactionError
Operation is not permitted on the root subnet.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.errors.StakeError[source]#
Bases:
ChainTransactionError
Error raised when a stake transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.SubNetworkDoesNotExist#
Bases:
ChainTransactionError
The subnet does not exist.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- message = 'Synapse Dendrite is None'#
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- message = 'Synapse Exception'#
- synapse = None#
- exception bittensor.core.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.core.errors.TakeError[source]#
Bases:
ChainTransactionError
Error raised when an increase / decrease take transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.TooManyChildren#
Bases:
ChainTransactionError
Too many children MAX 5.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.TransferError[source]#
Bases:
ChainTransactionError
Error raised when a transfer transaction fails.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.errors.TxRateLimitExceeded#
Bases:
ChainTransactionError
Default transaction rate limit exceeded.
Initialize self. See help(type(self)) for accurate signature.
- exception bittensor.core.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 (Optional[bittensor.core.synapse.Synapse])
- exception bittensor.core.errors.UnstakeError[source]#
Bases:
ChainTransactionError
Error raised when an unstake transaction fails.
Initialize self. See help(type(self)) for accurate signature.