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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
use super::ipc::IpcError;
use sn_client::Error as ClientError;
use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, Error)]
#[allow(clippy::large_enum_variant)]
#[non_exhaustive]
pub enum Error {
#[error("AuthError: {0}")]
AuthError(String),
#[error("AuthIpcError: {0}")]
AuthIpcError(#[from] IpcError),
#[error("AuthdClientError: {0}")]
AuthdClientError(String),
#[error("AuthdError: {0}")]
AuthdError(String),
#[error("AuthdAlreadyStarted: {0}")]
AuthdAlreadyStarted(String),
#[error("AuthenticatorError: {0}")]
AuthenticatorError(String),
#[error("ConnectionError: {0}")]
ConnectionError(String),
#[error("NetDataError: {0}")]
NetDataError(String),
#[error("ContentNotFound: {0}")]
ContentNotFound(String),
#[error("ContentError: {0}")]
ContentError(String),
#[error("ClientError: {0}")]
ClientError(#[from] ClientError),
#[error("EmptyContent: {0}")]
EmptyContent(String),
#[error("AccessDenied: {0}")]
AccessDenied(String),
#[error("VersionNotFound: {0}")]
VersionNotFound(String),
#[error("EntryNotFound: {0}")]
EntryNotFound(String),
#[error("EntryExists: {0}")]
EntryExists(String),
#[error("InvalidAmount: {0}")]
InvalidAmount(String),
#[error("InvalidXorUrl: {0}")]
InvalidXorUrl(String),
#[error("InvalidInput: {0}")]
InvalidInput(String),
#[error("InvalidMediaType: {0}")]
InvalidMediaType(String),
#[error("NotEnoughBalance: {0}")]
NotEnoughBalance(String),
#[error("Serialisation: {0}")]
Serialisation(String),
#[error("FileSystemError: {0}")]
FileSystemError(String),
}