soundfx-bot/src/error.rs
2020-05-20 17:54:46 +01:00

14 lines
282 B
Rust

use std::fmt::Formatter;
#[derive(Debug)]
pub enum ErrorTypes {
InvalidFile,
}
impl std::error::Error for ErrorTypes {}
impl std::fmt::Display for ErrorTypes {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "ErrorTypes: InvalidFile")
}
}