use thiserror::Error;
#[derive(Error, Debug, PartialEq, Eq)]
#[non_exhaustive]
pub enum RuntimeError {
#[error("An error occurred while attempting to spawn thread: {0}")]
ThreadSpawnError(String),
#[error("No thread with name '{0}' is registered")]
ThreadNotRegistered(String),
#[error("A timeout occurred while waiting for thread: '{0}'")]
ThreadWaitTimeout(String),
#[error("Failed to send message")]
SendError,
#[error("An error occurred during ")]
ThreadError(String),
}