converge-pack 3.7.2

The strict authoring contract for Converge packs, suggestors, and invariants
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types for gate infrastructure

use thiserror::Error;

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

#[derive(Error, Debug, Clone, PartialEq)]
pub enum GateError {
    #[error("invalid input: {0}")]
    InvalidInput(String),
}

impl GateError {
    pub fn invalid_input(msg: impl Into<String>) -> Self {
        Self::InvalidInput(msg.into())
    }
}