gh_workflow/error.rs
1//! This module defines the `Error` enum and the `Result` type alias used
2//! throughout the crate.
3
4#[derive(Debug, derive_more::From)]
5pub enum Error {
6 IO(std::io::Error),
7 Yaml(serde_yaml::Error),
8 GitHubWorkflowMismatch,
9 JobIdAlreadyExists(String),
10 UTF8(std::string::FromUtf8Error),
11 OutdatedWorkflow,
12 MissingWorkflowFile(std::path::PathBuf),
13}
14
15pub type Result<T> = std::result::Result<T, Error>;