Bitcoin ABC
0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
struct
bilingual_str
;
21
22
enum class
TransactionError
{
23
OK
,
24
25
MISSING_INPUTS
,
26
ALREADY_IN_CHAIN
,
27
P2P_DISABLED
,
28
MEMPOOL_REJECTED
,
29
MEMPOOL_ERROR
,
30
INVALID_PSBT
,
31
PSBT_MISMATCH
,
32
SIGHASH_MISMATCH
,
33
MAX_FEE_EXCEEDED
,
34
INVALID_PACKAGE
,
35
};
36
37
bilingual_str
TransactionErrorString
(
TransactionError
error
);
38
39
bilingual_str
ResolveErrMsg
(
const
std::string &
optname
,
40
const
std::string &
strBind
);
41
42
bilingual_str
AmountHighWarn
(
const
std::string &
optname
);
43
44
bilingual_str
AmountErrMsg
(
const
std::string &
optname
,
45
const
std::string &
strValue
);
46
47
#endif
// BITCOIN_UTIL_ERROR_H
TransactionErrorString
bilingual_str TransactionErrorString(TransactionError error)
Definition
error.cpp:11
AmountHighWarn
bilingual_str AmountHighWarn(const std::string &optname)
Definition
error.cpp:49
AmountErrMsg
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Definition
error.cpp:53
ResolveErrMsg
bilingual_str ResolveErrMsg(const std::string &optname, const std::string &strBind)
Definition
error.cpp:44
TransactionError
TransactionError
Definition
error.h:22
TransactionError::MISSING_INPUTS
@ MISSING_INPUTS
TransactionError::MEMPOOL_REJECTED
@ MEMPOOL_REJECTED
TransactionError::MAX_FEE_EXCEEDED
@ MAX_FEE_EXCEEDED
TransactionError::P2P_DISABLED
@ P2P_DISABLED
TransactionError::MEMPOOL_ERROR
@ MEMPOOL_ERROR
TransactionError::PSBT_MISMATCH
@ PSBT_MISMATCH
TransactionError::INVALID_PACKAGE
@ INVALID_PACKAGE
TransactionError::INVALID_PSBT
@ INVALID_PSBT
TransactionError::SIGHASH_MISMATCH
@ SIGHASH_MISMATCH
TransactionError::OK
@ OK
No error.
TransactionError::ALREADY_IN_CHAIN
@ ALREADY_IN_CHAIN
error
bool error(const char *fmt, const Args &...args)
Definition
logging.h:226
GetRand
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition
random.h:85
bilingual_str
Bilingual messages:
Definition
translation.h:17
Generated on Wed Oct 16 2024 02:39:27 for Bitcoin ABC by
1.9.8