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
44
//! Top-level error enum for `g8-core`.
use cratePlanStatus;
use Error;
/// Errors originating in `g8-core`.
///
/// Downstream crates define their own error types (e.g. `StoreError`,
/// `ExtractorError`) and convert from `G8Error` via `#[from]`.
///
/// # Examples
///
/// ```
/// use g8_core::G8Error;
///
/// let e = G8Error::InvalidId("empty string".into());
/// assert!(e.to_string().contains("invalid ID"));
/// ```