discord_snowflake/errors.rs
1use thiserror::Error as ThisError;
2
3#[derive(ThisError, Debug)]
4pub enum Error {
5 #[error("Error getting current timestamp")]
6 SystemTime(#[from] std::time::SystemTimeError),
7 #[error("Error parsing integer")]
8 ParseInt(#[from] std::num::ParseIntError),
9}
10
11pub type Result<T> = std::result::Result<T, Error>;