Function invalid_param
Source pub fn invalid_param(
name: impl ToString,
expected: &'static str,
err: impl Error,
) -> Error
Expand description
Creates an InvalidParam error for parameter parsing failures.
§Arguments
name - The parameter name
expected - The expected type description
err - The parse error
§Returns
An Error::InvalidParam variant
§Example
ⓘErr(invalid_param("id", "i32", e))