Machine‐readable wallet error codes.
Synopsis
Declared in <wallet/types.h>
enum class WalletErrorCode : int;
Description
|
Note
|
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. |
Members
Name |
Description |
|
Generic wallet error. Callers may present the accompanying message to the user. |
|
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. |
Created with MrDocs