blob: 6e780112b4199583ce973f154c6f026c9d011edd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 { }
|