timeflake_rs/
error.rs

1// SPDX-FileCopyrightText: 2022 perillamint
2//
3// SPDX-License-Identifier: MIT
4
5use custom_error::custom_error;
6
7custom_error! { pub TimeflakeError
8    RNGError{msg: String} = "RNG Error: {msg}",
9    SystemTimeError{msg: String} = "SystemTime Error: {msg}",
10    MalformedData{msg: String} = "Malformed data: {msg}",
11}