Bitcoin Core 31.99.0
P2P Digital Currency
Public Attributes | List of all members
wallet::WalletError Struct Reference

Wallet-layer error with both programmatic and user-facing information. More...

#include <types.h>

Collaboration diagram for wallet::WalletError:
[legend]

Public Attributes

WalletErrorCode code
 Machine-readable error code for callers that need programmatic handling. More...
 
bilingual_str message
 User-facing translated error message. More...
 

Detailed Description

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.

Definition at line 66 of file types.h.

Member Data Documentation

◆ code

WalletErrorCode wallet::WalletError::code

Machine-readable error code for callers that need programmatic handling.

Definition at line 68 of file types.h.

◆ message

bilingual_str wallet::WalletError::message

User-facing translated error message.

Definition at line 70 of file types.h.


The documentation for this struct was generated from the following file: