1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use thiserror::Error;
#[derive(Debug, Error)]
pub enum SequenceError {
#[error("An error has occurred")]
OutOfRange,
#[error("Out of Range for renderer capacity")]
OutOfRangeRender,
#[error("An error has occurred")]
NotAsciiCharacter,
#[error("An error has occurred")]
InvalidCharacter(char),
#[error("An error occured in building an Element")]
ElementBuilderError {
#[from]
source: crate::element::ElementBuilderError,
},
#[error("An error has occurred")]
InvalidString,
#[error("An empty string can not be provided, we need input to infer settings.")]
EmptyString,
#[error("An error has occurred")]
PaddingAlpha,
#[error("Could not convert {0} to an int")]
ParseIntError( #[from] std::num::ParseIntError ),
#[error("This iterator is done")]
Done,
#[error("Iterator not initialized, inner value not set")]
Uninitialized,
}