pub enum BeekeeperError {
WalletNotFound {
name: String,
},
WalletWriteFailed {
name: String,
},
Crypto(String),
TimedOut,
Cxx(Exception),
}Expand description
Every failure surfaced by the Rust facade.
Errors raised by the C++ wallet manager arrive as
cxx::Exception and are wrapped in
BeekeeperError::Cxx verbatim — their Display message is the text
thrown on the C++ side (typically an fc::exception message).
Variants§
WalletNotFound
The named wallet file is missing from the storage directory.
Only emitted by RustStorageProtocol::cpp_load,
i.e. when the C++ side asks for a wallet that does not exist on disk.
WalletWriteFailed
Persisting wallet bytes to disk failed (permissions, full disk, …).
Crypto(String)
A crypto primitive (AES, secp256k1, base58, …) refused the input.
The wrapped string is the lower-level error’s Display text.
TimedOut
An operation was attempted after the inactivity timeout elapsed.
Cxx(Exception)
Pass-through for exceptions thrown by the C++ wallet manager.
Trait Implementations§
Source§impl Debug for BeekeeperError
impl Debug for BeekeeperError
Source§impl Display for BeekeeperError
impl Display for BeekeeperError
Source§impl Error for BeekeeperError
impl Error for BeekeeperError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()