1use crate::Message;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum ActorError {
6 #[error(transparent)]
7 OneshotRecv(#[from] tokio::sync::oneshot::error::RecvError),
8 #[error(transparent)]
9 UnboundedChannelSend(#[from] tokio::sync::mpsc::error::SendError<Message>),
10 #[error(transparent)]
11 BincodeError(#[from] bincode::Error),
12 #[error(transparent)]
13 AddressRegexError(#[from] regex::Error),
14
15 #[error("Address {0} not found")]
16 AddressNotFound(String),
17 #[error("Actor that's address is {0} not ready")]
18 ActorNotReady(String),
19 #[error("Actor clone failed: {0}")]
20 CloneFailed(String),
21}