Function human_errors::user [−][src]
pub fn user(description: &str, advice: &str) -> Error
A basic error triggered by something the user has done.
Constructs a new Error describing a failure which was the result of an action that the user has taken. This error includes a description of what occurred, as well as some advice for the user to try to mitigate the problem.
Examples
use human_errors; human_errors::user( "We could not open the config file you provided.", "Make sure that the file exists and is readable by the application.", );