serenity_rich_interaction/
error.rs1pub type Result<T> = std::result::Result<T, Error>;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[error("Serenity Error: {0}")]
6 SerenityError(#[from] serenity::Error),
7
8 #[error("Page {0} not found")]
9 PageNotFound(usize),
10
11 #[error("Serenity Rich Interaction is not fully initialized")]
12 Uninitialized,
13
14 #[error("the cache is not available, therefore some required data is missing")]
15 NoCache,
16
17 #[error("{0}")]
18 Msg(String),
19}