Skip to main content

hydra/
argument_error.rs

1/// Occurs when an argument to a function was incorrect or not valid at the given time.
2#[derive(Debug)]
3pub struct ArgumentError(pub String);
4
5impl<T> From<T> for ArgumentError
6where
7    T: Into<String>,
8{
9    fn from(value: T) -> Self {
10        Self(value.into())
11    }
12}