Bitcoin
src
util
error.h
Go to the documentation of this file.
1
// Copyright (c) 2010-2018 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_UTIL_ERROR_H
6
#define BITCOIN_UTIL_ERROR_H
7
18
#include <string>
19
20
enum class
TransactionError
{
21
OK
,
22
MISSING_INPUTS
,
23
ALREADY_IN_CHAIN
,
24
P2P_DISABLED
,
25
MEMPOOL_REJECTED
,
26
MEMPOOL_ERROR
,
27
INVALID_PSBT
,
28
PSBT_MISMATCH
,
29
SIGHASH_MISMATCH
,
30
MAX_FEE_EXCEEDED
,
31
};
32
33
std::string
TransactionErrorString
(
const
TransactionError
error
);
34
35
std::string
AmountHighWarn
(
const
std::string& optname);
36
37
std::string
AmountErrMsg
(
const
char
*
const
optname,
const
std::string& strValue);
38
39
#endif // BITCOIN_UTIL_ERROR_H
TransactionError::MISSING_INPUTS
TransactionError::OK
No error.
TransactionErrorString
std::string TransactionErrorString(const TransactionError error)
Definition:
error.cpp:9
AmountErrMsg
std::string AmountErrMsg(const char *const optname, const std::string &strValue)
Definition:
error.cpp:42
TransactionError::INVALID_PSBT
TransactionError
TransactionError
Definition:
error.h:20
AmountHighWarn
std::string AmountHighWarn(const std::string &optname)
Definition:
error.cpp:37
TransactionError::ALREADY_IN_CHAIN
TransactionError::MEMPOOL_REJECTED
TransactionError::P2P_DISABLED
TransactionError::PSBT_MISMATCH
TransactionError::MAX_FEE_EXCEEDED
TransactionError::SIGHASH_MISMATCH
error
bool error(const char *fmt, const Args &... args)
Definition:
system.h:59
TransactionError::MEMPOOL_ERROR
Generated by
1.8.15