[#wallet-WalletError] = xref:wallet.adoc[wallet]::WalletError :relfileprefix: ../ :mrdocs: Wallet‐layer error with both programmatic and user‐facing information. == Synopsis Declared in `<wallet/types.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:wallet/WalletError/code.adoc[`code`] | Machine‐readable error code for callers that need programmatic handling. | xref:wallet/WalletError/message.adoc[`message`] | User‐facing translated error message |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#