rust_releases_core/errors.rs
1/// A result type which binds the `CoreError` to the error type.
2pub type CoreResult<T> = Result<T, CoreError>;
3
4/// Top level failure cases for rust-releases-core
5#[derive(Debug, thiserror::Error)]
6#[non_exhaustive]
7pub enum CoreError {
8 /// Returned in case of an i/o error
9 #[error(transparent)]
10 Io(#[from] std::io::Error),
11
12 /// Returned in the event that the parsing a release channel with a given identifier does not exist
13 #[error("Release channel '{0}' was not found")]
14 NoSuchChannel(String),
15}