icee_container_rs/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug, PartialEq)]
4pub enum Error {
5 #[error("Missing service [{0}]")]
6 NotFound(String),
7 #[error("Incorrect Service type of [{0}]")]
8 TypeMismatch(String),
9}
10
11// pub struct NotFound {
12// pub name: String,
13// }
14//
15// #[derive(Error, Debug)]
16// pub struct TypeMismatch {
17// pub name: String,
18// }