use std::{error::Error, fmt::Display};
#[derive(Debug)]
pub struct TinyV2Error(pub String);
impl TinyV2Error {
pub(crate) fn new<T: Into<String>>(msg: T) -> Self {
Self(msg.into())
}
}
impl Display for TinyV2Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
impl Error for TinyV2Error {}