[][src]Function failure::err_msg

pub fn err_msg<D: Display + Debug + Sync + Send + 'static>(msg: D) -> Error

Constructs a Fail type from a string.

This is a convenient way to turn a string into an error value that can be passed around, if you do not want to create a new Fail type for this use case.