Machine-readable wallet error codes.
Declared in <wallet/types.h>
enum class WalletErrorCode : int;
Add new codes only when callers need to handle the condition differently. For errors that should only be displayed to the user, use WalletErrorCode::GenericError and provide the user-facing details in WalletError::message.
| Name | Description |
|---|---|
GenericError | Generic wallet error. Callers may present the accompanying message to the user. |
UnlockNeeded | The wallet is locked and the operation requires access to private keys. Callers may ask the user to unlock the wallet and retry the operation. |