1use displaydoc::Display;
4use massa_models::address::Address;
5use thiserror::Error;
6
7#[non_exhaustive]
9#[derive(Display, Error, Debug)]
10pub enum WalletError {
11 IOError(#[from] std::io::Error),
13 YAMLError(#[from] serde_yaml::Error),
15 SerdeqsError(#[from] serde_qs::Error),
17 ModelsError(#[from] massa_models::error::ModelsError),
19 MassaHashError(#[from] massa_hash::MassaHashError),
21 MassaSignatureError(#[from] massa_signature::MassaSignatureError),
23 MissingKeyError(Address),
25 MassaCipherError(#[from] massa_cipher::CipherError),
27 VersionError(String),
29 InconsistentWalletFile(String),
31}