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,
}