Create errors module with basic error
This commit is contained in:
parent
70c10be0d8
commit
ae27d92b68
14
src/errors.rs
Normal file
14
src/errors.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
//! Common Yorokobot errors
|
||||
|
||||
use mongodb::error::Error as MongoError;
|
||||
use serenity::prelude::SerenityError;
|
||||
|
||||
/// The kind of errors that can be returned by Client::new
|
||||
#[derive(Debug)]
|
||||
pub enum ClientsError {
|
||||
/// Serenity error while building client
|
||||
Discord(SerenityError),
|
||||
|
||||
///Mongo error while parsing options
|
||||
Database(MongoError),
|
||||
}
|
Loading…
Reference in a new issue