use thiserror::Error;
#[derive(Error, Debug)]
pub enum BotError {
#[error("Plugin not found: {0}")]
PluginNotFound(String),
#[error("Bot's Weak reference has expired")]
RefExpired,
}
#[derive(Error, Debug)]
pub enum BotBuildError {
#[error("Failed to parse TOML:\n{0}\nPlease reload the config file")]
TomlParseError(String),
#[error("Failed to create config file: {0}")]
FileCreateError(String),
#[error("Failed to read TOML file: {0}")]
FileReadError(String),
}
#[derive(Error, Debug)]
pub enum EventBuildError {
#[error("Parse error: {0}")]
ParseError(String),
}
#[derive(Error, Debug)]
pub enum MessageError {
#[error("Parse error: {0}")]
ParseError(String),
}