wallet::WalletErrorCode

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

NameDescription
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.