use displaydoc::Display;
use massa_models::address::Address;
use thiserror::Error;
#[non_exhaustive]
#[derive(Display, Error, Debug)]
pub enum WalletError {
IOError(#[from] std::io::Error),
YAMLError(#[from] serde_yaml::Error),
SerdeqsError(#[from] serde_qs::Error),
ModelsError(#[from] massa_models::error::ModelsError),
MassaHashError(#[from] massa_hash::MassaHashError),
MassaSignatureError(#[from] massa_signature::MassaSignatureError),
MissingKeyError(Address),
MassaCipherError(#[from] massa_cipher::CipherError),
VersionError(String),
}