-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.rs
More file actions
29 lines (28 loc) · 713 Bytes
/
Copy patherror.rs
File metadata and controls
29 lines (28 loc) · 713 Bytes
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
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("experimental: {0}")]
Experimental(String),
#[error("argument: {0}")]
Argument(String),
#[error("unknown command")]
UnknownCommand,
#[error("password verification")]
PasswordVerification,
#[error("password provider")]
PasswordProvider,
#[error("no trust")]
NoTrust,
#[error("non interactive")]
NonInteractive,
#[error("decoding error: {0}")]
Decoding(String),
#[error("mismatched shares")]
MismatchedShares,
#[error("checksum failed")]
ChecksumFailed,
#[error("password mismatch")]
PasswordMismatch,
#[cfg(test)]
#[error("shell {0}")]
Shell(String),
}