Bitcoin
Enumerations | Functions
error.h File Reference
#include <string>

Go to the source code of this file.

Enumerations

enum  TransactionError {
  TransactionError::OK, TransactionError::MISSING_INPUTS, TransactionError::ALREADY_IN_CHAIN, TransactionError::P2P_DISABLED,
  TransactionError::MEMPOOL_REJECTED, TransactionError::MEMPOOL_ERROR, TransactionError::INVALID_PSBT, TransactionError::PSBT_MISMATCH,
  TransactionError::SIGHASH_MISMATCH, TransactionError::MAX_FEE_EXCEEDED
}
 

Functions

std::string TransactionErrorString (const TransactionError error)
 
std::string AmountHighWarn (const std::string &optname)
 
std::string AmountErrMsg (const char *const optname, const std::string &strValue)
 

Enumeration Type Documentation

◆ TransactionError

enum TransactionError
strong

util/error.h is a common place for definitions of simple error types and string functions. Types and functions defined here should not require any outside dependencies.

Error types defined here can be used in different parts of the bitcoin codebase, to avoid the need to write boilerplate code catching and translating errors passed across wallet/node/rpc/gui code boundaries.

Enumerator
OK 

No error.

MISSING_INPUTS 
ALREADY_IN_CHAIN 
P2P_DISABLED 
MEMPOOL_REJECTED 
MEMPOOL_ERROR 
INVALID_PSBT 
PSBT_MISMATCH 
SIGHASH_MISMATCH 
MAX_FEE_EXCEEDED 

Function Documentation

◆ AmountErrMsg()

std::string AmountErrMsg ( const char *const  optname,
const std::string &  strValue 
)

◆ AmountHighWarn()

std::string AmountHighWarn ( const std::string &  optname)

◆ TransactionErrorString()

std::string TransactionErrorString ( const TransactionError  error)