Documentation
1
2
3
4
5
6
7
8
9
use thiserror::Error;

#[derive(Error, Debug)]
#[error("Service with the same type and key already exists, try using a different type as a key")]
pub struct ServiceAlreadyExistsError;

#[derive(Error, Debug)]
#[error("Service with the specified type and key does not exist")]
pub struct ServiceNotFoundError;