use thiserror::Error;
#[derive(Error, Debug)]
pub enum VsmRuntimeFault {
#[error("Env Error: {msg}")]
EnvironmentVariable {
msg: String,
},
#[error("CommandExecutor Error: {msg}")]
CommandExecutor {
msg: String,
},
#[error("Toml Read Error: {msg}")]
TomlConfigFileRead {
msg: String,
},
#[error("Toml Write Error: {msg}")]
TomlConfigFileWrite {
msg: String,
},
#[error("None of the supported vim variants were found on your system => {msg:?}")]
NoSupportedVimVariantFound {
msg: String,
},
#[error("Selection failure => {msg}")]
SelectionFailure {
msg: String,
},
#[error("Failure to delete session => {msg}")]
SessionFileRemoval {
msg: String,
},
}