better_url/errors/
generic.rs1use thiserror::Error;
4
5#[derive(Debug, Error)]
7#[error("Failed to find an insert.")]
8pub struct InsertNotFound;
9
10#[derive(Debug, Error)]
12#[error("Failed to find a range.")]
13pub struct RangeNotFound;
14
15#[derive(Debug, Error)]
17#[error("Failed to set a value to empty.")]
18pub struct CantBeNone;
19
20#[derive(Debug, Error)]
22#[error("Failed to set a value to empty.")]
23pub struct CantBeEmpty;
24
25#[derive(Debug, Error)]
27#[error("A value was too long.")]
28pub struct TooLong;