Skip to main content

asimov_id/
id_error.rs

1// This is free and unencumbered software released into the public domain.
2
3use crate::{HandleError, KeyError};
4use thiserror::Error;
5
6#[derive(Clone, Debug, Eq, Error, PartialEq)]
7pub enum IdError {
8    #[error("empty input")]
9    EmptyInput,
10
11    #[error("invalid handle: {0}")]
12    InvalidHandle(#[from] HandleError),
13
14    #[error("invalid public key: {0}")]
15    InvalidPublicKey(#[from] KeyError),
16}