rustywallet_export/
error.rs1use thiserror::Error;
4
5#[derive(Debug, Error)]
7pub enum ExportError {
8 #[error("Invalid key: {0}")]
10 InvalidKey(String),
11
12 #[error("Encryption failed: {0}")]
14 EncryptionFailed(String),
15
16 #[error("Serialization failed: {0}")]
18 SerializationFailed(String),
19
20 #[error("Invalid network: {0}")]
22 InvalidNetwork(String),
23
24 #[error("Address generation failed: {0}")]
26 AddressError(String),
27}
28
29pub type Result<T> = std::result::Result<T, ExportError>;