asimov-id 25.3.2

ASIMOV Software Development Kit (SDK) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This is free and unencumbered software released into the public domain.

use crate::{HandleError, KeyError};
use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, PartialEq)]
pub enum IdError {
    #[error("empty input")]
    EmptyInput,

    #[error("invalid handle: {0}")]
    InvalidHandle(#[from] HandleError),

    #[error("invalid public key: {0}")]
    InvalidPublicKey(#[from] KeyError),
}