Bitcoin Core
22.0.0
P2P Digital Currency
src
util
error.h
Go to the documentation of this file.
1
// Copyright (c) 2010-2020 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
struct
bilingual_str
;
21
22
enum class
TransactionError
{
23
OK
,
24
MISSING_INPUTS
,
25
ALREADY_IN_CHAIN
,
26
P2P_DISABLED
,
27
MEMPOOL_REJECTED
,
28
MEMPOOL_ERROR
,
29
INVALID_PSBT
,
30
PSBT_MISMATCH
,
31
SIGHASH_MISMATCH
,
32
MAX_FEE_EXCEEDED
,
33
EXTERNAL_SIGNER_NOT_FOUND
,
34
EXTERNAL_SIGNER_FAILED
,
35
};
36
37
bilingual_str
TransactionErrorString
(
const
TransactionError
error
);
38
39
bilingual_str
ResolveErrMsg
(
const
std::string& optname,
const
std::string& strBind);
40
41
bilingual_str
AmountHighWarn
(
const
std::string& optname);
42
43
bilingual_str
AmountErrMsg
(
const
std::string& optname,
const
std::string& strValue);
44
45
#endif // BITCOIN_UTIL_ERROR_H
TransactionErrorString
bilingual_str TransactionErrorString(const TransactionError error)
Definition:
error.cpp:11
bilingual_str
Bilingual messages:
Definition:
translation.h:16
TransactionError::MISSING_INPUTS
TransactionError::OK
No error.
AmountHighWarn
bilingual_str AmountHighWarn(const std::string &optname)
Definition:
error.cpp:48
ResolveErrMsg
bilingual_str ResolveErrMsg(const std::string &optname, const std::string &strBind)
Definition:
error.cpp:43
AmountErrMsg
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Definition:
error.cpp:53
TransactionError::INVALID_PSBT
TransactionError::EXTERNAL_SIGNER_NOT_FOUND
TransactionError::EXTERNAL_SIGNER_FAILED
TransactionError
TransactionError
Definition:
error.h:22
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:49
TransactionError::MEMPOOL_ERROR
Generated on Thu Sep 9 2021 12:00:00 for Bitcoin Core by
1.8.14