gitbox 2.1.3

Git toolbox to simplify adoption of conventional commits and semantic version, among other things.
Documentation
use std::{error::Error, fmt::Display};

#[derive(Debug)]
pub struct ChangelogOptionsInvariantError {
    message: String,
}

impl ChangelogOptionsInvariantError {
    pub fn new(message: &str) -> ChangelogOptionsInvariantError {
        ChangelogOptionsInvariantError {
            message: message.to_owned(),
        }
    }
}

impl Display for ChangelogOptionsInvariantError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "ChangelogOptions invariant error: {}", &self.message)
    }
}

impl Error for ChangelogOptionsInvariantError {}