Bitcoin ABC  0.24.7
P2P Digital Currency
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 
34 };
35 
37 
38 bilingual_str ResolveErrMsg(const std::string &optname,
39  const std::string &strBind);
40 
41 bilingual_str AmountHighWarn(const std::string &optname);
42 
43 bilingual_str AmountErrMsg(const std::string &optname,
44  const std::string &strValue);
45 
46 #endif // BITCOIN_UTIL_ERROR_H
TransactionError::MEMPOOL_REJECTED
@ MEMPOOL_REJECTED
bilingual_str
Bilingual messages:
Definition: translation.h:17
TransactionError::MEMPOOL_ERROR
@ MEMPOOL_ERROR
TransactionError::PSBT_MISMATCH
@ PSBT_MISMATCH
TransactionError
TransactionError
Definition: error.h:22
AmountHighWarn
bilingual_str AmountHighWarn(const std::string &optname)
Definition: error.cpp:47
TransactionError::INVALID_PSBT
@ INVALID_PSBT
TransactionError::SIGHASH_MISMATCH
@ SIGHASH_MISMATCH
TransactionError::P2P_DISABLED
@ P2P_DISABLED
ResolveErrMsg
bilingual_str ResolveErrMsg(const std::string &optname, const std::string &strBind)
Definition: error.cpp:42
TransactionError::OK
@ OK
No error.
TransactionErrorString
bilingual_str TransactionErrorString(TransactionError error)
Definition: error.cpp:11
error
bool error(const char *fmt, const Args &... args)
Definition: system.h:48
TransactionError::MISSING_INPUTS
@ MISSING_INPUTS
TransactionError::MAX_FEE_EXCEEDED
@ MAX_FEE_EXCEEDED
AmountErrMsg
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
Definition: error.cpp:51
TransactionError::ALREADY_IN_CHAIN
@ ALREADY_IN_CHAIN