asimov-id 25.3.1

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

use thiserror::Error;

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

    #[error("invalid length: {0}")]
    InvalidLength(usize),

    #[error("invalid first character: {0}")]
    InvalidFirstChar(char),

    #[error("invalid character: {0}")]
    InvalidChar(char),
}