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