pub fn error<S: ToString>(err: S) -> Error
Use old name for backward-compatibility. Generates an io::Error from the given string.
io::Error