wallet::WalletError

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

Synopsis

Declared in <wallet/types.h>

struct WalletError;

Description

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.

Data Members

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