scsys_time/error.rs
1/*
2 Appellation: error <module>
3 Created At: 2025.09.08:17:20:05
4 Contrib: @FL03
5*/
6//! the [`error`](self) module provides a custom error type for the `time` crate
7//! as well as a type alias for results using this error type.
8
9/// A type alias for a [`Result`](core::result::Result) with the error type set to [`Error`].
10pub type Result<T> = core::result::Result<T, Error>;
11
12#[derive(Debug, thiserror::Error)]
13pub enum Error {
14 #[error("An error occurred with the timestamp: {0}")]
15 TimestampError(&'static str),
16}