runtime/errors/
mod.rs

1//! Git Interactive Rebase Tool - Git crate errors
2//!
3//! # Description
4//! This module contains error types used in the Git crate.
5
6use thiserror::Error;
7
8/// The kind of config error that occurred.
9#[derive(Error, Debug, PartialEq, Eq)]
10#[non_exhaustive]
11pub enum RuntimeError {
12	/// An error occurred while attempting to spawn a thread
13	#[error("An error occurred while attempting to spawn thread: {0}")]
14	ThreadSpawnError(String),
15	/// No thread with the given name is registered
16	#[error("No thread with name '{0}' is registered")]
17	ThreadNotRegistered(String),
18	/// A timeout occurred while attempting to wait for a thread
19	#[error("A timeout occurred while waiting for thread: '{0}'")]
20	ThreadWaitTimeout(String),
21	/// An error occurred while sending a message
22	#[error("Failed to send message")]
23	SendError,
24	/// The thread resulted in an error.
25	#[error("An error occurred during ")]
26	ThreadError(String),
27}