Function human_errors::detailed_message[][src]

pub fn detailed_message(message: &str) -> BasicInternalError

Generates an error with the given message.

Generates a std::error::Error compatible error for the given message. Can be used as the internal error for an crate::Error.

Examples

use human_errors;

human_errors::user_with_internal(
  "We could not open the config file you provided.",
  "Make sure that the file exists and is readable by the application.",
  human_errors::detailed_message("ENOENT 2: No such file or directory")
);