blob: 6e780112b4199583ce973f154c6f026c9d011edd (
plain) (
tree)
|
|
use poise::FrameworkError;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Serenity: {0}")]
Serenity(#[from] serenity::prelude::SerenityError),
#[error("SQL: {0}")]
Sql(#[from] sqlx::Error),
#[error("Unknown: {0}")]
Unknown(String),
#[error("Catch-all: {0}")]
CatchAll(#[from] Box<dyn std::error::Error>),
}
unsafe impl Send for Error { }
unsafe impl Sync for Error { }
|