bitcoinrpc.exceptions — Exception definitions

Exception definitions.

exception bitcoinrpc.exceptions.BitcoinException(error)

Bases: exceptions.Exception

Base class for exceptions received from Bitcoin server.

  • code – Error code from bitcoind.
exception bitcoinrpc.exceptions.ClientException(error)

Bases: bitcoinrpc.exceptions.BitcoinException

P2P network error. This exception is never raised but functions as a superclass for other P2P client exceptions.

exception bitcoinrpc.exceptions.DownloadingBlocks(error)

Bases: bitcoinrpc.exceptions.ClientException

Client is still downloading blocks.

exception bitcoinrpc.exceptions.InsufficientFunds(error)

Bases: bitcoinrpc.exceptions.WalletError

Insufficient funds to complete transaction in wallet or account

exception bitcoinrpc.exceptions.InvalidAccountName(error)

Bases: bitcoinrpc.exceptions.WalletError

Invalid account name

exception bitcoinrpc.exceptions.InvalidAddressOrKey(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Invalid address or key.

bitcoinrpc.exceptions.InvalidAmount

alias of JSONTypeError

exception bitcoinrpc.exceptions.InvalidParameter(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Invalid parameter provided to RPC call.

bitcoinrpc.exceptions.InvalidTransactionID

alias of InvalidAddressOrKey

exception bitcoinrpc.exceptions.JSONTypeError(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Unexpected type was passed as parameter

exception bitcoinrpc.exceptions.KeypoolRanOut(error)

Bases: bitcoinrpc.exceptions.WalletError

Keypool ran out, call keypoolrefill first

exception bitcoinrpc.exceptions.NotConnected(error)

Bases: bitcoinrpc.exceptions.ClientException

Not connected to any peers.

exception bitcoinrpc.exceptions.OutOfMemory(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Out of memory during operation.

exception bitcoinrpc.exceptions.SafeMode(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Operation denied in safe mode (run bitcoind with -disablesafemode).

bitcoinrpc.exceptions.SendError

alias of WalletError

exception bitcoinrpc.exceptions.WalletAlreadyUnlocked(error)

Bases: bitcoinrpc.exceptions.WalletError

Wallet is already unlocked

exception bitcoinrpc.exceptions.WalletEncryptionFailed(error)

Bases: bitcoinrpc.exceptions.WalletError

Failed to encrypt the wallet

exception bitcoinrpc.exceptions.WalletError(error)

Bases: bitcoinrpc.exceptions.BitcoinException

Unspecified problem with wallet (key not found etc.)

exception bitcoinrpc.exceptions.WalletPassphraseIncorrect(error)

Bases: bitcoinrpc.exceptions.WalletError

The wallet passphrase entered was incorrect

exception bitcoinrpc.exceptions.WalletUnlockNeeded(error)

Bases: bitcoinrpc.exceptions.WalletError

Enter the wallet passphrase with walletpassphrase first

exception bitcoinrpc.exceptions.WalletWrongEncState(error)

Bases: bitcoinrpc.exceptions.WalletError

Command given in wrong wallet encryption state (encrypting an encrypted wallet etc.)

Previous topic

bitcoinrpc.connection — Connect to Bitcoin server via JSON-RPC

Next topic

bitcoinrpc.data — Bitcoin RPC service, data objects

This Page