summaryrefslogblamecommitdiff
path: root/dichroism/src/error.rs
blob: 17c00244c8672b98f9b889b8816f4b0fb75e88de (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                         
                     





                                                                        
                             

     
 
#[derive(Debug)]
pub enum DichroismError {
    UriDataExtract,
    InvalidImageRoot,
}

impl std::error::Error for DichroismError {}

impl std::fmt::Display for DichroismError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self)
    }
}