sir_eel/config/error.rs
1pub type Result<T> = core::result::Result<T, Error>;
2
3#[derive(Debug)]
4pub enum Error {
5 FileUnreadable,
6 FileFormatUnrecognized,
7 MissingProperty(String),
8}
9
10impl std::fmt::Display for Error {
11 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
12 write!(f, "{self:?}")
13 }
14}
15
16impl core::error::Error for Error {}