forge
ExploreLog in

Tahinli/forge

public
0 watching
★ 0
752 bytes
1//! The error type shared across forge crates.
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[error("io error: {0}")]
6 Io(#[from] std::io::Error),
7 #[error("database error: {0}")]
8 Database(String),
9 #[error("migration error: {0}")]
10 Migration(String),
11 #[error("config error: {0}")]
12 Config(String),
13 #[error("crypto error: {0}")]
14 Crypto(String),
15 #[error("invalid name: {0}")]
16 InvalidName(String),
17 #[error("git error: {0}")]
18 Git(String),
19 #[error("not found")]
20 NotFound,
21 #[error("conflict: {0}")]
22 Conflict(String),
23 #[error("forbidden: {0}")]
24 Forbidden(String),
25 #[error("invalid value: {0}")]
26 Invalid(String),
27}
28
29pub type Result<T> = std::result::Result<T, Error>;