continuity_text/error.rs
1//! Errors for the `continuity-text` crate.
2
3use thiserror::Error;
4
5/// Errors that can arise while operating on text primitives.
6#[derive(Debug, Error)]
7pub enum Error {
8 /// An offset or position fell outside the bounds of the text.
9 #[error("offset {0} out of bounds")]
10 OutOfBounds(usize),
11}