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.