letter_sequence/
error.rs

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