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
use config::ConfigError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Settings Load Error")]
SettingsError {
#[from]
source: ConfigError,
},
#[error("Access Point parse error: {0}")]
AcessPointError(String),
#[error("API not yet avalabile")]
ApiNotYetAvailable,
#[error("Can't received anymore notifications. All notification senders dropped")]
CantReceiveNotification,
#[error("No notifications pending")]
NoNewNotification,
#[error("Can't generate PK. Both seed and explicit PK are defined in provided settings")]
PkConflict,
#[error("Either a seed or the MC private key must be specified to start a node")]
NoMCAvailable,
#[error("Invalid Hex String as Private Key")]
InvalidHexString,
#[error("Node has previously executed with a different KeyPair. Please, specify the same KeyPair as before. Current ControllerID {0}")]
InvalidKeyPairSpecified(String),
}