nitinol_process/
errors.rs1use nitinol_core::identifier::EntityId;
2
3#[derive(Debug, thiserror::Error)]
4#[error("channel may have been dropped or thread may have been stopped.")]
5pub struct ChannelDropped;
6
7#[derive(Debug, thiserror::Error)]
8#[error("Invalid cast to {to}")]
9pub struct InvalidCast {
10 pub to: &'static str
11}
12
13#[derive(Debug, thiserror::Error)]
14#[error("Already registered {0} in registry")]
15pub struct AlreadyExist(pub EntityId);
16
17#[derive(Debug, thiserror::Error)]
18#[error("Not found {0} in registry")]
19pub struct NotFound(pub EntityId);