1use thiserror::Error;
7
8#[derive(Error, Debug, PartialEq, Eq)]
10#[non_exhaustive]
11pub enum RuntimeError {
12 #[error("An error occurred while attempting to spawn thread: {0}")]
14 ThreadSpawnError(String),
15 #[error("No thread with name '{0}' is registered")]
17 ThreadNotRegistered(String),
18 #[error("A timeout occurred while waiting for thread: '{0}'")]
20 ThreadWaitTimeout(String),
21 #[error("Failed to send message")]
23 SendError,
24 #[error("An error occurred during ")]
26 ThreadError(String),
27}