use core::num::ParseIntError;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("While parsing policy size limit an unexpected unit was encountered: {0}")]
UnexpectedUnit(String),
#[error("Policy size overflow (byte size does not fit in u64): {number} {unit}")]
Overflow { number: u64, unit: String },
#[error("Failed to parse as an int from the config: {0}")]
ParseIntError(#[from] ParseIntError),
}