Wallet-layer error with both programmatic and user-facing information.
Declared in <wallet/types.h>
struct WalletError;
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.
| Name | Description |
|---|---|
code | Machine-readable error code for callers that need programmatic handling. |
message | User-facing translated error message |