1use thiserror::Error;
2
3#[derive(Error, Debug, Clone, PartialEq)]
4pub enum SpriteError {
5 #[error("actor {0} not found")]
6 ActorNotFound(u64),
7 #[error("mailbox closed for actor {0}")]
8 MailboxClosed(u64),
9 #[error("state key '{0}' not found")]
10 StateNotFound(String),
11 #[error("state type mismatch for key '{0}'")]
12 StateTypeMismatch(String),
13 #[error("request timed out")]
14 RequestTimeout,
15 #[error("pool '{0}' not found")]
16 PoolNotFound(String),
17 #[error("actor '{0}' not found in registry")]
18 RegistryNotFound(String),
19}