web_route/error.rs
1#[derive(Debug, Clone, thiserror::Error)]
2pub enum WebRouteError {
3 /// When generating a populated route, the `value`s input needs to
4 /// serialize into key-value pairs.
5 #[error("values need to be able to serialize into a `serde_json::Value::Object`")]
6 InvalidValue,
7
8 /// When generating a populated route, there was no value to populate the
9 /// specified parameter key.
10 #[error("no value to populate parameter: {0}")]
11 UnpopulatedParam(String),
12}