![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
Wallet-layer error with both programmatic and user-facing information. More...
#include <types.h>
Public Attributes | |
| WalletErrorCode | code |
| Machine-readable error code for callers that need programmatic handling. More... | |
| bilingual_str | message |
| User-facing translated error message. More... | |
Wallet-layer error with both programmatic and user-facing information.
Wallet methods should return a specific WalletErrorCode only when callers can handle that condition differently. Otherwise, use WalletErrorCode::GenericError and describe the failure in message.
| WalletErrorCode wallet::WalletError::code |
| bilingual_str wallet::WalletError::message |