Skip to main content

tower_defense/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3    #[error("Signature: {0}")]
4    Signature(#[from] ed25519_dalek::SignatureError),
5
6    #[error("Invalid timestamp")]
7    InvalidTimestamp,
8
9    #[error("SystemTime error: {0}")]
10    SystemTime(#[from] std::time::SystemTimeError),
11
12    #[error("TryFromInt error: {0}")]
13    TryFromInt(#[from] std::num::TryFromIntError),
14}