1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Error type returned by the public Rust API.
//!
//! A small enum rather than a single message string, so callers can
//! pattern-match on the common cases without parsing error text.
use Error;
/// Convenient `Result<T, BeekeeperError>` alias used internally.
pub type Res<T> = ;
/// 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).