2022-10-02 19:24:59 +08:00
use thiserror ::Error ;
#[ derive(Debug, Error) ]
pub enum Error {
2022-10-03 22:12:01 +08:00
#[ error( " The version 1 of the dumps is not supported anymore. You can re-export your dump from a version between 0.21 and 0.24, or start fresh from a version 0.25 onwards. " ) ]
DumpV1Unsupported ,
2022-10-10 20:32:11 +08:00
#[ error( " Bad index name. " ) ]
2022-10-03 22:12:01 +08:00
BadIndexName ,
2022-10-10 20:32:11 +08:00
#[ error( " Malformed task. " ) ]
MalformedTask ,
2022-10-03 22:12:01 +08:00
2022-10-02 19:24:59 +08:00
#[ error(transparent) ]
Io ( #[ from ] std ::io ::Error ) ,
#[ error(transparent) ]
Serde ( #[ from ] serde_json ::Error ) ,
2022-10-04 00:50:06 +08:00
#[ error(transparent) ]
Uuid ( #[ from ] uuid ::Error ) ,
2022-10-02 19:24:59 +08:00
}