1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum PlatformError {
5 #[error("time error: {0}")]
6 TimeError(String),
7
8 #[error("general error: {0}")]
9 GeneralError(String),
10}
11
12pub type Result<T> = core::result::Result<T, PlatformError>;