kea-lifecycle 0.1.0

buildpack lifecycle
Documentation
use crate::{buildpack::error::BuildpackError, cmd::detector::error::DetectorError};

pub type Result<T> = std::result::Result<T, LifecycleError>;

#[derive(thiserror::Error, Debug)]
pub enum LifecycleError {
    #[error("Detector error. ({0:?})")]
    BuildpackError(BuildpackError),

    #[error("Detector error. ({0:?})")]
    DetectorError(DetectorError),
}

impl From<BuildpackError> for LifecycleError {
    fn from(value: BuildpackError) -> Self {
        Self::BuildpackError(value)
    }
}

impl From<DetectorError> for LifecycleError {
    fn from(value: DetectorError) -> Self {
        Self::DetectorError(value)
    }
}